preface.make
From_monad.Monad
preface
preface.core
preface.specs
preface.stdlib
type 'a t
The type held by the Monad.
Monad
val bind : ('a -> 'b t) -> 'a t -> 'b t
bind f m passes the result of computation m to function f.
bind f m
m
f
val map : ('a -> 'b) -> 'a t -> 'b t
Mapping over from 'a to 'b over 'a t to 'b t.
'a
'b
'a t
'b t
val join : 'a t t -> 'a t
join remove one level of monadic structure, projecting its bound argument into the outer level.
join
val return : 'a -> 'a t
Create a new 'a t.
val compose_left_to_right : ('a -> 'b t) -> ('b -> 'c t) -> 'a -> 'c t
Composing monadic functions using Kleisli Arrow (from left to right).