5 lines
85 B
Text
5 lines
85 B
Text
func factorial_iterative(n) {
|
|
var f = 1
|
|
{|i| f *= i } << 2..n
|
|
return f
|
|
}
|