An infinite sequene for node.
JavaScript CoffeeScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
README
Sequence.coffee
Sequence.js
Sequence_test.spec.coffee
Sequence_test.spec.js

README

This is my infinite sequence, built in CoffeeScript, just require('sequence.coffee').Sequence.  The constructor takes a function that is used to build the sequence.  Take and takeWhile will pass arguments to your sequence in an array, but you are responsible for tracking state.  Look at the tests if you want examples of useage..