Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Lisp in about 200 lines of Ruby. Parent comment
exp ::= var | (lambda (var) exp) | (exp exp)
Check out
http://matt.might.net/articles/church-encodings-demo-in-sche...
To see how to build numbers, booleans, lists, conditionals and recursion out of pure lambdas.
Even cooler is that these tricks work in languages like JavaScript too:
http://matt.might.net/articles/implementation-of-recursive-f...
There are no comments on this comment yet.
exp ::= var | (lambda (var) exp) | (exp exp)
Check out
http://matt.might.net/articles/church-encodings-demo-in-sche...
To see how to build numbers, booleans, lists, conditionals and recursion out of pure lambdas.
Even cooler is that these tricks work in languages like JavaScript too:
http://matt.might.net/articles/implementation-of-recursive-f...