λ

2.4: Conditional expressions

Standard ML defines one conditional expression. You may define additional cases by chaining the if-else expressions.

Note that all branches of the if-else expression must have the same type.

(* examples/cond-expr.sml *)