Skip to content

mikmart/monad

Repository files navigation

monad

Lifecycle: experimental R-CMD-check

monad provides generic operators for monadic classes. Features include:

  • fmap(), bind() and join() S7 generic functions.
  • %>>% and %>-% pipe operators for fmap() and bind() 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.

Installation

Install from GitHub with:

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

About

Monad Operators and Generics

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages