Monad.WITH_RETURN_MAP_AND_JOIN
Minimal definition using return, map and join.
return
map
join
type 'a t
The type held by the Monad.
Monad
include Indexed_monad.WITH_RETURN with type ('a, 'index) t := 'a t
val return : 'a -> 'a t
Lift a value into a t.
t
include Indexed_bind.WITH_MAP_AND_JOIN with type ('a, 'index) t := 'a t
val map : ('a -> 'b) -> 'a t -> 'b t
Mapping over from 'a to 'b.
'a
'b
val join : 'a t t -> 'a t
join remove one level of monadic structure, projecting its bound argument into the outer level.