monad: Operators and Generics for Monads

Compose generic monadic function pipelines with %>>% and %>-% based on implementing the 'S7' generics fmap() and bind(). Methods are provided for the built-in list type and the maybe class from the 'maybe' package. The concepts are modelled directly after the Monad typeclass in Haskell, but adapted for idiomatic use in R.

Package details

AuthorMikko Marttila [aut, cre]
MaintainerMikko Marttila <mikkmart@protonmail.com>
LicenseMIT + file LICENSE
Version0.1.1
URL https://github.com/mikmart/monad https://mikmart.github.io/monad/
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("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.