package orsetto
Install
Dune Dependency
Authors
Maintainers
Sources
sha512=9b654edb663ae697563f150824047052f3b1bf760398f24bce6350553f031f73c46b6337239a1acd871e61238597ea92046809e3358290ff14d6ba671b449085
doc/orsetto.cf/Cf_monad/Unary/Create/index.html
Module Unary.Create
Use module M = Create(B)
to create a module that implements all the conventional interfaces of a monad.
Parameters
Signature
Module inclusions from Cf_monad_core
and Cf_seqmonad
.
include Core.Unary.Profile with type 'r t := 'r B.t
val return : 'r -> 'r B.t
Use return a
to apply the binding to a
.
Use map m ~f
to return the result of applying f
to the value returned by m
.
Use product a b
to return the monoidal product of a
and b
.
module Affix : Cf_monad_core.Unary.Affix with type 'r t := 'r B.t
Open Affix
to include the affix monad operators.
Use disregard m
to ignore the value returned by m
and apply the unit value to the bound function.
module Infix = Affix
Deprecated module alias.
include Cf_seqmonad.Functor.Unary with type 'r t := 'r B.t
Use collect s
to bind in sequence every monad value in the finite sequence s
and collect all the returned values. Returns (n, s)
where n
is the number of values collected and s
is the list of values in reverse order, i.e. from last collected to first collected. Never returns and exhausts all memory if s
never terminates.