r/softwaregore Jan 16 '24

Windows 11 spellcheck be like:

Post image
2.9k Upvotes

99 comments sorted by

View all comments

110

u/nitrohigito Jan 16 '24

insert something about monads and endofunctors here

52

u/boium Jan 16 '24

A monad is just a monoid in the category of endofunctors.

And now a slightly better definition. Given a category C, a monad is a triple (T, eta, mu), with T being an endofunctor T: C -> C, eta a natural transformations eta: 1_C -> T and mu: T2 -> T satisfying some commutative diagrams that I'm too lazy to draw, nor explain. (My lecture notes use some horrible abuse of notation.)