
#7 Why Adopt New Technology? And Monads! Monads! Monads!
Happy Path Programming
00:00
How to Implement a Flat Map Function in a Monad
Each monad has its own, well, for example, flat map. That's not just any flat map. It is a so, so the flat map. Like you overload it, right? So on the case of an option, option has a flat map function. As long as they have a flat map, I'm just going to call your flat map. Different languages and technologies have implemented this differently. One way to implement it is to have a, a use inheritance to say, okay, if I inherit essentially from, from monad, then I get a flat map.
Transcript
Play full episode