Pattern Matching

Pattern matching is an alternative to the usual if/else structure, especially for collections it provides a clear way to filter and transform data.

collections

simple filtering and transforming based on conditions is already possible with Linq using select and where, however when filtering and transforming for multiple conditions this can become a hard to read mess.

TODO Example(s)

single values

An example can be parsing user input for different colours.

TODO: Example(s)