orsetto.cf
Create.B
orsetto.cbor
orsetto.json
orsetto.ucs
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.
return a
a
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.
bind m f
m
f
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.
mapping
fun a -> return (f a)