package orsetto

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

Install

Dune Dependency

Authors

Maintainers

Sources

r1.0.tar.gz
sha256=585297372d7f6cfb830214e9ef22d6d072a39b2a1591ef90f1ee2bcfe144cad3
md5=6bb6a7ba88bf2c7595a0b332921e60b4

doc/orsetto.cf/Cf_scmonad/Basis/index.html

Module Cf_scmonad.Basis

val return : 'r -> ('p, 'q, 'r) t

Define return a to apply a to the bound function.

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