RosettaCodeData/Task/Factorial/MANOOL/factorial-2.manool

12 lines
268 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
{ 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
}