DEV Community

Discussion on: Functional JavaScript - Functors, Monads, and Promises

Collapse
 
jolmos profile image
jolmos

Thanks! Nice examples.
Just one suggestion: under title "Back to the Monad" you explain flatMap, but not Monad, and then you just say: "We have covered Functors and Monads".
It left me a bit confused until I read further.

I miss one sentence like "A Monad is similar to a Functor, but is Flat Mappable between Categories." in the "Back to the Monad" section.

Collapse
 
joelnet profile image
JavaScript Joel

Thanks for the feedback. I have added a couple of sentences a little closer to the flatMap example to hopefully add some clarity to this:

Maybe you were expecting more, but that's it for a Monad! A Monad is both mappable and flat-mappable.

Hope that helps!

Cheers!