Destructuring
← Back to Pattern Matching
Breaking apart a compound data structure into its constituent parts and binding them to variables in a single step. Destructuring is used in pattern matching to extract values from tuples, structs, enums, and other composite types.