This story was originally published on HackerNoon at:
https://hackernoon.com/list-is-a-monad-understanding-map-flatmap-and-maybe-in-practice.
Monads are more than just containers, and there isn’t the-one-and-only monad.
Check more stories related to programming at:
https://hackernoon.com/c/programming.
You can also check exclusive content about
#programming,
#monad,
#monads,
#monads-explained,
#list-monad-tutorial,
#map-vs-flatmap,
#unit-and-flatmap,
#maybe-monad-guide, and more.
This story was written by:
@alexyorke. Learn more about this writer by checking
@alexyorke's about page,
and for more stories, please visit
hackernoon.com.
Monads are more than just containers, and there isn’t the-one-and-only monad. Monads usually involve generic types, but they require specific operations (`Unit' and 'flatMap')