O'Reilly logo

Functional Programming in Java: How functional techniques improve your Java programs by Pierre-Yves Saumont

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Appendix B. Monads

After reading this book, you might be surprised (and possibly frustrated) by the fact that I didn’t talk about monads. Monads are a hot topic, and you can find many so-called “Monad tutorials” on the web. The topic of monads seems to be very intimidating, and many programmers read these tutorials one after the other in the hope that they’ll eventually understand what monads are. Of course, many other programmers do understand monads, but very few are able to explain monads in simple terms.

The reason why there are so many monad tutorials is probably because there’s no definitive tutorial, so people keep trying to roll their own. This appendix is not another monad tutorial. I wouldn’t want to write one for two reasons:

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required