by eddyschai · 4y ago · 0 comments
A monad is just a monoid in the category of endofunctors.
A monad is a special kind of a functor. A functor F takes each type T and maps it to a new type FT. A burrito is like a functor: it takes a type, like meat or beans, and turns it into a new type, like beef burrito or bean burrito.
An endofunctor is the category containing monoids such as the monad.*
*This is probably wrong. Please don't explain.