home
/
code
/
tiger.ml.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
59fd5b8fddf1a9859254a2dffb4efe3f41a0e957
[tiger.ml.git]
/
test04.tig
1
/* define a recursive function */
2
let
3
4
/* calculate n! */
5
function nfactor(n: int): int =
6
if n = 0
7
then 1
8
else n * nfactor(n-1)
9
10
in
11
nfactor(10)
12
end
13
This page took
0.058765 seconds
and
3
git commands to generate.