September 2023
Intermediate to advanced
470 pages
11h 12m
English
Monads have a reputation for being difficult to understand from a programming perspective, but from the category theory perspective, they are a natural extension of functor, if you forgive the pun.
Technically, a monad is an endofunctor M with two natural transformations attached:
The first natural transformation unit—nothing to do with the Unit in Kotlin—allows us to create a monad from any object; it’s similar to a constructor in programming.
To better understand join, let’s consider what we said about endofunctors—they create a smaller image M of the category C in C itself. Now in this smaller M, there must also be the image of M itself—let’s ...
Read now
Unlock full access