case expression can be used to conditionally execute fragments of code depending on the value or type of an expression.
when clause expects a comma separated list of patterns to match. If one of the provided patterns match, the corresponding body is executed. If no
when clause has a match, the
else clause is executed (if it is present).