45018545a8cf9b1b5602165bb8ca9a7566c0a0a9
[tiger.ml.git] / test21.tig
1 /* error : procedure returns value and procedure is used in arexpr */
2 let
3
4 /* calculate n! */
5 function nfactor(n: 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.0515330000000001 seconds and 3 git commands to generate.