
#7 Why Adopt New Technology? And Monads! Monads! Monads!
Happy Path Programming
00:00
How to Chain Function Calls in Kotlin
In Kotlin, a monad is a package of information that travels from one function to another so that we can chain function calls. When you take the two together, it's basically an either. We want to chain these functions together. Instead of just returning a result, we have to return a package of info which is passed on. And then when you get Matthew, it's like, well, what are the rules for that package of information?
Transcript
Play full episode