scala function map
Here’s a cool way to use anonomous function blocks as Scala Map
values.
Use case: I need a library of transformations for user input living in memory and I want to match on User Input.
I like using case objects
in this way as it leverages the Scala type system. case objects
also have a handy toString
built in.