Programming-Idioms

History of Idiom 31 > diff from v8 to v9

Edit summary for version 9 :

Version 8

2015-08-22, 21:30:37

Version 9

2015-08-23, 10:47:56

Idiom #31 Recursive factorial (simple)

Create recursive function f which returns the factorial of non-negative integer i, calculated from f(i-1)

Idiom #31 Recursive factorial (simple)

Create recursive function f which returns the factorial of non-negative integer i, calculated from f(i-1)

Code
f(i) => (i == 0) ? 1 : i * f(i - 1);