RosettaCodeData/Task/Factorial/Groovy/factorial-1.groovy
2016-12-05 22:15:40 +01:00

2 lines
70 B
Groovy

def rFact
rFact = { (it > 1) ? it * rFact(it - 1) : 1 as BigInteger }