Sha256: 7104e40b4825cce468b2b702fe92e4c87f3ae1b29eb7fdb9d6e21bc65908ebde
Contents?: true
Size: 140 Bytes
Versions: 17
Compression:
Stored size: 140 Bytes
Contents
// computes factorial of a number factorial := method(n, if(n == 0, return 1) res := 1 Range 1 to(n) foreach(i, res = res * i) )
Version data entries
17 entries across 17 versions & 1 rubygems