The Observable disguised as an IO Monad
Luis Atencio
361

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 `IO.run()` is like actually executing a function using `fn()`.

Observable as function — https://twitter.com/andrestaltz/status/684339021363986432

Show your support

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