MarcellusDrum@lemmy.ml to Programmer Humor@lemmy.ml · 3 years agoI'm a wizardlemmy.mlimagemessage-square3fedilinkarrow-up174arrow-down11
arrow-up173arrow-down1imageI'm a wizardlemmy.mlMarcellusDrum@lemmy.ml to Programmer Humor@lemmy.ml · 3 years agomessage-square3fedilink
minus-squareArthur Besse@lemmy.mllinkfedilinkarrow-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))