Introduction
Switch with value binding lets you check a value and grab parts of it to use inside the switch cases.
When you want to check a number and also use that number inside the case.
When you have a tuple and want to match some parts while keeping others for use.
When you want to handle different shapes of data and extract details easily.
When you want to write clear code that handles many conditions with values.