Pattern matching snippet

- Small snippet which allows case statement to look like pattern matching