RosettaCodeData/Task/Factorial/Groovy/factorial-1.groovy
2023-07-01 13:44:08 -04:00

2 lines
70 B
Groovy

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