Map and FlatMap
Today I’m going to talk about map and flatMap.
For some reason, it took me a while to understand these functions so I wanted to share them with you.
The following code examples are in Scala and can easily be executed from the Scala REPL.