Core_via_bind.Req
type 'a t
The type held by the Monad_plus.
Monad_plus
include Preface_specs.Indexed_monad.WITH_RETURN with type ('a, 'index) t := 'a t
val return : 'a -> 'a t
Lift a value into a t.
t
include Preface_specs.Indexed_bind.WITH_BIND with type ('a, 'index) t := 'a t
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 combine : 'a t -> 'a t -> 'a t
Combine two values of t into one.
val neutral : 'a t
The neutral element of the t.