this post was submitted on 24 Mar 2022
1 points (100.0% liked)

Programmer Humor

32396 readers
1877 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))