RosettaCodeData/Task/Factorial/MANOOL/factorial-2.manool
2023-07-01 13:44:08 -04:00

11 lines
268 B
Text

{ let rec
{ Fact = -- compile-time constant binding
{ proc { N } as -- precondition: N.IsI48[] & (N >= 0)
{ if N == 0 then 1 else
N * Fact[N - 1]
}
}
}
in -- use Fact here or just make the whole expression to evaluate to it:
Fact
}