RosettaCodeData/Task/Mutual-recursion/Standard-ML/mutual-recursion-2.ml
Ingy döt Net d066446780 langs a-z
2013-04-10 22:43:41 -07:00

5 lines
110 B
Standard ML

val rec f = fn 0 => 1
| n => n - m (f (n-1))
and m = fn 0 => 0
| n => n - f (m (n-1))
;