A case study on destructuring and pattern matching.