5.12 case
(case expr [(choice ...) expr] ... [(choice ...) expr]) |
A case form contains one or more “lines” that are
surrounded by parentheses or square brackets. Each line contains a
sequence of choices – numbers and names for symbols – and an answer
expr. The initial expr is evaluated, and the
resulting value is compared to the choices in each line, where the
lines are considered in order. The first line that contains a matching
choice provides an answer expr whose value is the result of
the whole case expression. If none of the lines contains a
matching choice, it is an error.