Skip to content

Instantly share code, notes, and snippets.

@Quby
Created April 3, 2011 18:04
Show Gist options
  • Save Quby/900622 to your computer and use it in GitHub Desktop.
Save Quby/900622 to your computer and use it in GitHub Desktop.
Math.mult = function(a,b){
return a*b;
}
fact = Sequence([1],1,Math.mult)
fact.take(20)
[1,1,2,6,24,120,720,5040,40320,362880,3628800,39916800,479001600,6227020800,87178291200,1307674368000,20922789888000,355687428096000,6402373705728000,121645100408832000]
fact.read(15)
87178291200
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment