package orsetto

  1. Overview
  2. Docs
A library of assorted structured data interchange languages

Install

Dune Dependency

Authors

Maintainers

Sources

r1.0.1.tar.gz
sha256=f64814687276bad56483b2b8dfaaf70d0d6485f67fe5d44bff34bfa47af1896e
md5=3a15a377800cf988a310b4082406c685

doc/orsetto.cf/Cf_seqmonad/Functor/Unary/argument-1-B/index.html

Parameter Unary.B

type +'r t

The abstract type of monad with a parameter for its return type.

val return : 'r -> 'r t

Define return a to apply a to the bound function.

val bind : 'a t -> ('a -> 'b t) -> 'b t

Define bind m f to apply the value returned by m to the function f to obtain the result monad.

val mapping : [ `Default | `Special of 'a t -> f:('a -> 'b) -> 'b t ]

Define mapping to define the `map` operator either as the default fun a -> return (f a) or as some other special map function.

OCaml

Innovation. Community. Security.