3 ms·
Maybe is not the simplest monad, Identity is, and I think Maybe is an excellent example of a monad.
by tome 14y ago
Maybe is not the simplest monad, Identity is, and I think Maybe is an excellent example of a monad.
- TheCoelacanth 14y agoIdentity is simpler, but it's not very interesting. It's hard for a beginner to see why you would ever use the Identity monad. Maybe is the simplest interesting monad, which makes it a good candidate for explaining monads to beginners.