In this talk, I discuss what a monad is and some of the advantages of using them in your code base. I also walk through how one might implement some common monads, like the Try or Option monads.
List -> Collection • Observable -> Changing values over time • Single -> A single value over time • Try -> Success or failure • Option -> Presence or absence of value
monad implements map and flatmap. • List -> Collection • Observable -> Changing values over time • Single -> A single value over time • Try -> Success or failure • Option -> Presence or absence of value