MarcellusDrum to Programmer Humor · 3 years agoI'm a wizardimagemessage-square4fedilinkarrow-up186arrow-down13
arrow-up183arrow-down1imageI'm a wizardMarcellusDrum to Programmer Humor · 3 years agomessage-square4fedilink
minus-squareArthur BesseAlinkfedilinkarrow-up9·edit-23 years agoadd = ( lambda f: (lambda g: f(lambda *h: g(g)(*h)))( lambda g: f(lambda *h: g(g)(*h)) ) )((lambda _add: lambda a, b: _add(a ^ b, c << 1) if (c := a & b) else a ^ b))
add = ( lambda f: (lambda g: f(lambda *h: g(g)(*h)))( lambda g: f(lambda *h: g(g)(*h)) ) )((lambda _add: lambda a, b: _add(a ^ b, c << 1) if (c := a & b) else a ^ b))