README.md

monad

Lifecycle: experimental R-CMD-check

The monad package provides generics and generic operators for monadic classes. These are:

Implementations of the generics are provided for:

Implementing classes must provide fmap() and either bind() or join(). Method implementations must satisfy the ?"functor-laws" and ?"monad-laws".

The concepts are modelled directly after the Monad typeclass in the functional programming language Haskell. Operator names and calling conventions have been adapted to fit R.

Installation

Install the current release from CRAN:

install.packages("monad")

Or the development version from GitHub:

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


Try the monad package in your browser

Any scripts or data that you put into this service are public.

monad documentation built on Oct. 28, 2024, 5:07 p.m.