home
/
code
/
tiger.ml.git
/ blame
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blob
|
blame
(incremental) |
history
|
HEAD
Fail successful execution when expected error is defined
[tiger.ml.git]
/
compiler
/
testcases
/
test04.tig
Commit
Line
Data
38ffcb1f
SK
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.034895 seconds
and
4
git commands to generate.