Get Scala for the Impatient, Second Edition now with O’Reilly online learning.
O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.
Topics in This Chapter
14.1 A Better Switch
14.3 Variables in Patterns
14.4 Type Patterns
14.5 Matching Arrays, Lists, and Tuples
14.7 Patterns in Variable Declarations ...