3 lines
87 B
Scala
3 lines
87 B
Scala
implicit def IntToFac(i : Int) = new {
|
|
def ! = (2 to i).foldLeft(BigInt(1))(_ * _)
|
|
}
|