Using tuples
fun plus(x,y) = x + y;
fn : int*int -> int
fun all_to_all(v,lst) = if null lst then nil else (hd lst + v):: add_to_all(val, tl lst);
val : add_to_all = fn int*int list -> int list
Previous slide
Next slide
Back to first slide
View graphic version