Pattern matching is the second most widely used feature of Scala, after function values and closures. Scala’s superb support for pattern matching means you’ll use it extensively when you receive messages from actors in concurrent programming. In this chapter, you’ll learn about Scala’s mechanism for pattern matching, the case classes, and the extractors, as well as how to create and use regular expressions.
18.117.76.7