Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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)

Here's a simple recursively defined number system in scheme: https://gist.github.com/1466985



Indeed. This encoding is due to church (http://en.wikipedia.org/wiki/Church_encoding).




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: