package orsetto

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

Install

Dune Dependency

Authors

Maintainers

Sources

r1.0.3.tar.gz
sha256=151ca6df499bd3de7aa89a4e1627411fbee24c4dea6e0e71ce21f06f181ee654
md5=00393728b481c2bf15919a8202732335

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

Parameter Binary.B

type ('m, +'r) t

The abstract type of monad with two parameters, a phantom type and a return type.

val return : 'r -> ('m, 'r) t

Define return a to apply a to the bound function.

val bind : ('m, 'a) t -> ('a -> ('m, 'b) t) -> ('m, '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 ('m, 'a) t -> f:('a -> 'b) -> ('m, '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.