r/functionalprogramming • u/This_H • Sep 22 '21
JavaScript I implemented the Fibonacci Sequence in pure lambda calculus within JavaScript!! No arithmetic operators, no assignment, no numbers and no loops... just functions :)
https://github.com/OscarSaharoy/lambda-fibonacci
33
Upvotes
5
u/DonutDonutDonut Sep 23 '21
Really cool. Where do the "bird functions" get their names?
5
u/EmDashComma Sep 23 '21
I believe these names are ultimately from 'To Mock A Mockingbird', by Raymond Smullyan.
2
u/pilotInPyjamas Sep 23 '21 edited Sep 23 '21
I thought assignment wasn't part of lambda calculus? Very impressive regardless
4
u/[deleted] Sep 22 '21
It would be really nice if you could write it in TypeScript, it would make it easier to understand what’s going on IMO. Good job anyway!