FlatMap is way more powerful than map
Demystifying the Monad in Scala
Sinisa Louc
1.6K20

I don’t agree that flatMap is more powerful. The power comes from the `f` function, flatMap actually destroys some information in the process of flatting. This forces `f` to include more information in the first place.

So I think the power comes from the function that flatMap requires as the argument not flatMap itself.

Thanks for the nice writeup BTW :)

Like what you read? Give Rudy Yazdi a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.