Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Implements tail recursion without overflowing the stack
JavaScript CoffeeScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.gitignore
README
Recurse.coffee
Recurse.js
Recurse_test.spec.coffee
Recurse_test.spec.js

README

Tail Recursion

Just require recurse.coffee and then call recurse with the initial input and a function that returns the next input and an accumulator in a array or the final value.
Something went wrong with that request. Please try again.