The Observable disguised as an IO Monad
Luis Atencio

Good comparison — both things are lazy and do not execute until someone calls `.run()` or `.subscribe()`. Taking another analogy — observable is like a function that can return multiple values () — we can even say that IO monad is a fancy, complex way of writing a function definition, and running `` is like actually executing a function using `fn()`.

Observable as function —

Show your support

Clapping shows how much you appreciated Gleb Bahmutov’s story.