Match

The match expression lets you branch on enum variants and destructure their data in one step.

Each case binds the variant's fields to variables you can use in that branch. Note that match replaces switch in Soppo; there is no switch statement.

Try it: Add a case for the Triangle variant if you created one earlier.