Algebraic data types
Algebraic data types
You are encouraged to solve this task according to the task description, using any language you may know.
You are encouraged to solve this task according to the task description, using any language you may know.
Languages may offer direct support for pattern matching. Exemplify briefly the types of patterns that one can match against.