3 ms·
How about 49 lines? https://github.com/samphilipd/the-little-schemer/blob/master/scheme.js https://github.com/samphilipd/the-little-schemer/blob/master... I w
by seivadmas 12y ago
How about 49 lines?
https://github.com/samphilipd/the-little-schemer/blob/master/scheme.js https://github.com/samphilipd/the-little-schemer/blob/master...
I wrote an implementation of Scheme in Javascript to use as I work through the excellent book 'The Little Schemer'. Turns out you can implement a basic version of the language in just 7 functions.
It's Turing complete and you can use the base methods to build any function you need.