Example of local bindings
fun hypot(x, y) =
let val xsq = x * x
val ysq = y * y
in Math.sqrt(xsq + ysq)
end
Previous slide
Next slide
Back to first slide
View graphic version