public
Created

  • Download Gist
gistfile1.js
JavaScript
1 2 3 4 5 6 7 8 9 10 11
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

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.