News for hackers. Stuff that matters.
Re:Parse, Don't Validate (2019) by quchen on Tuesday March 07, 2023 @07:51AM (#35054736)
Church encoding is pretty cool, yes! It encodes Booleans such that »if == id«. Likewise, natural numbers are essentially counting for-loops: 3 f x = f (f (f x)), so »for == id«.

I had to work with this for a while because I wanted to implement Hello World in Javascript. https://github.com/quchen/lambda-ski/blob/master/helloworld/...

There are no comments on this comment yet.