Another example of local bindings
fun fact(n) =
let fun f(0, k) = k
| f(x, k) =
f(x-1, x*k)
in f(n, 1)
end
Previous slide
Next slide
Back to first slide
View graphic version