4 ms·
That was pretty cool. Interesting to note that the numbers he used are essentially an implementation of the Peano Axioms, where the successor function wraps the
by hendzen 15y ago
That was pretty cool. Interesting to note that the numbers he used are essentially an implementation of the Peano Axioms, where the successor function wraps the predecessor in a lambda. (http://en.wikipedia.org/wiki/Peano_Axioms http://en.wikipedia.org/wiki/Peano_Axioms)
Here's a simple recursively defined number system in scheme:
https://gist.github.com/1466985 https://gist.github.com/1466985
- rmcclellan 15y agoIndeed. This encoding is due to church (http://en.wikipedia.org/wiki/Church_encoding http://en.wikipedia.org/wiki/Church_encoding).