Value bindings
Saying
val name = exp
binds name to the value of exp.
It may look like it creates a variable, but it doesn't really:
val x = 42
fun f() = x
val x = 24
val y = f() (* y = 42 *)
Previous slide
Next slide
Back to first slide
View graphic version