MarcellusDrum@lemmy.ml to Programmer Humor@lemmy.ml · 3 years agoI'm a wizardlemmy.mlimagemessage-square1fedilinkarrow-up12arrow-down10
arrow-up12arrow-down1imageI'm a wizardlemmy.mlMarcellusDrum@lemmy.ml to Programmer Humor@lemmy.ml · 3 years agomessage-square1fedilink
minus-squareArthur Besse@lemmy.mllinkfedilinkarrow-up2·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))