Fun with λ calculus!
JavaScript
Latest commit 995b3f5 Jan 4, 2017 @gtramontina Implement the Y-Combinator
FACTORIAL and FIBONACCI are now using the Y-Combinator!
Permalink
Failed to load latest commit information.
.gitignore Run tests on travis Jan 4, 2017
.travis.yml Run tests on travis Jan 4, 2017
README.md Implement the Y-Combinator Jan 4, 2017
lambda.js Implement the Y-Combinator Jan 4, 2017
package.json Run tests on travis Jan 4, 2017

README.md

λ

Fun with Lambda Calculus in JS

Build Status

Exploring:

$ node lambda.js

Fiddling with it (npm install first):

$ npm test

Notes:

  1. These are functions all the way, so expect your stack to grow real quick! 😄 You can increase it if you want with node's parameter --stack-size=<n>, as you can see in the test npm script.

  2. I cheated a bit when using named lambda abstractions (for the sake of readability)

References:


I hope you enjoy reading it as much as I enjoyed doing it! ❤️ Perhaps you could add more examples…? 😄