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