Science, asked by Dikshabhargav1173, 1 year ago

What is Pattern Matching in Scala?

Answers

Answered by misha10118
0
Pattern matching is the second most widely used feature of Scala, after function values and closures. A pattern match includes a sequence of alternatives, each starting with the keyword case. Each alternative includes a pattern and one or more expressions, which will be evaluated if the pattern matches.
Similar questions