The built-in list
type is a monad with element-wise function application
as fmap()
and flattening as join()
. It follows that fmap()
is a map
operator and bind()
is a "flat map" operator.
See also
purrr::map()
which implements fmap()
for list
purrr::list_flatten()
which implements join()
for list
.
Other monads:
maybe