Flatten your code

Flatten your code

When dealing with nested containers in Scala, like Future[Option[A]], you code quickly gets messy from deep nesting.

This presentation shows a way to solve that, using monad transformers.

There's accompanying code and exercises on http://github.com/eamelink/flatten

571dbec0501e1cde6143c3586bc9a600?s=128

Erik Bakker

June 05, 2014
Tweet