O'Reilly logo

Functional Programming: A PragPub Anthology by Michael Swaine

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 18Pattern Matching in Scala

by Venkat Subramaniam

You’ve seen some examples of Scala’s expressive and concise nature in Chapter 5, Creating Higher-Order Functions in Scala. Pattern matching is another area where you’ll appreciate the elegance of Scala. As you saw in Chapter 10, Patterns and Transformations in Elixir, pattern matching is a natural fit for functional programming, and Scala provides simple yet powerful facilities for pattern matching, as you’ll see in this chapter.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required