3 ms·
> As someone who conjured this exact thing up in another language after reading SICP Me too! http://jsfiddle.net/skilldrick/vT2mC/ http://jsfiddle.net/skilldri
by skilldrick 15y ago
> As someone who conjured this exact thing up in another language after reading SICP
Me too! http://jsfiddle.net/skilldrick/vT2mC/ http://jsfiddle.net/skilldrick/vT2mC/
I didn't get very far with it though - the combined issues of JavaScript's lack of tail-call optimisation and its verbose lambda syntax made building streams to painful.
This looks like an interesting approach, though you'll never get around JS's heavy lambdas (unless you use CoffeeScript or something).