Author: Amelia

Introduction to Match Expressions and Pattern Matching in Scala

Reading Time: 4 minutes In this article, we will discuss match expressions and pattern matching in Scala. A match expression contains one or more case statements which are used to match against possible values. Match expressions in Scala are comparable to switch statements in other programming languages such as JavaScript or Java. They are an alternative to a series of if/else statements. Match expressions have some differences from switch Continue Reading