package orsetto

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

Install

Dune Dependency

Authors

Maintainers

Sources

r1.1.1.tar.gz
sha256=81283687ce3204263bc955a332dd7b90bf5b648a990c01160f33aaa77d80962f
md5=7346293aa013c2a8974c6fb7c521166a

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

Module Cf_smonad.Basis

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.

val product : [ `Default | `Special of ('m, 'a) t -> ('m, 'b) t -> ('m, 'a * 'b) t ]

Define product to select the `product` operator to be either fun a b -> bind a (fun r1 -> bind b (fun r2 -> return (r1, r2))) or some other special function.

OCaml

Innovation. Community. Security.