monad provides generic operators for monadic classes. Features include:
-
fmap()
,bind()
andjoin()
S7 generic functions. -
%>>%
and%>-%
pipe operators forfmap()
andbind()
respectively.
Implementations of the generics are provided for:
- The
list
built-in type. - The
maybe
S3 class from the maybe package.
Implementing classes must provide fmap()
and either bind()
or join()
, and the method implementations must satisfy the functor and monad laws.