λ

2.2: Value deconstruction

Standard ML allows you to deconstruct values using the val keyword, as well, in place of using the case construct. This is useful in cases like pulling a value out of a list, tuple, or record.

(* examples/deconstr.sml *)