2 ms·
> I like to think of monads as wrappers around data Technically they're a wrapper around a data type. Maybe Foo is a Foo that might not be there, [Foo] is zer
by chuckadams 2y ago
> I like to think of monads as wrappers around data
Technically they're a wrapper around a data type. Maybe Foo is a Foo that might not be there, [Foo] is zero or more Foos, etc. Which is actually describing a Functor, but Monads are also Functors, the "monadness" comes from the particular functions like `bind` (or `flatMap`) that work on them.