Composition in ML
fun f x = x+1;
val f = fn : int -> int
fun g y = 2*y;
val g = fn : int -> int
val h = g o f;
val h = fn : int -> int
h 5;
val it = 12
Previous slide
Next slide
Back to first slide
View graphic version