java-monads-example Slightly modified code from this blog post: [IO is Your Command Pattern] (http://www.alexeyshmalko.com/2015/io-is-your-command-pattern/) Takeaway: anything of type interface A<T> { T apply(); } is a free (as in beer) monad.