this post was submitted on 24 Mar 2022
45 points (97.9% liked)

Programmer Humor

31808 readers
584 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 2 points 2 years ago* (last edited 2 years ago)
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))