pattern matching (thanks for @nadako)

Pattern matching example with array and enum matching.