This PR updates the manual to take into account the latest extensions of pattern matching, namely wildcard patterns, constant patterns, array patterns, pattern guards and or-patterns.
Doing so, we also update the examples (in the manual and in the examples directory) to use pattern matching whenever it looks more idiomatic and make the code more readable.
Note that this PR requires to update Topiary to handle all of this new syntax first. Currently the Nickel formatting task of the CI chokes on those new constructs.
Closes #1911.
This PR updates the manual to take into account the latest extensions of pattern matching, namely wildcard patterns, constant patterns, array patterns, pattern guards and or-patterns.
Doing so, we also update the examples (in the manual and in the
examples
directory) to use pattern matching whenever it looks more idiomatic and make the code more readable.