This code is a nice illustration of how Scala Pattern Matching simplifies common tasks.
It simply splits the line on spaces and then matches the resultant list.
The code is a little simplistic. For example, the parameters are limited to Strings.
This code is a nice illustration of how Scala Pattern Matching simplifies common tasks.
It simply splits the line on spaces and then matches the resultant list.
The code is a little simplistic. For example, the parameters are limited to Strings.