Via.Core
type ('a, 'index) t
The type held by the Indexed Bind.
Indexed Bind
val bind : ('a -> ('b, 'index) t) -> ('a, 'index) t -> ('b, 'index) t
bind f m passes the result of computation m to function f.
bind f m
m
f
val map : ('a -> 'b) -> ('a, 'index) t -> ('b, 'index) t
Mapping over from 'a to 'b.
'a
'b
val join : (('a, 'index) t, 'index) t -> ('a, 'index) t
join remove one level of monadic structure, projecting its bound argument into the outer level.
join
val compose_left_to_right : ('a -> ('b, 'index) t) -> ('b -> ('c, 'index) t) -> 'a -> ('c, 'index) t
Composing monadic functions using Kleisli Arrow (from left to right).