Skip to contents

monad provides generic operators for monadic classes. Features include:

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.

Installation

Install from GitHub with:

# install.packages("pak")
pak::pak("mikmart/monad")