Enumerations Destructuring

  • The match statement is used when the structure being destructured can have difference variants such as an enumerations