travesty

Traversable containers, monad extensions, and more
IN THIS PACKAGE
val return : 'a -> ( 'a, B.t ) M.t
val (>>=) : ( 'a, B.t ) M.t -> ( 'a -> ( 'b, B.t ) M.t ) -> ( 'b, B.t ) M.t

t >>= f returns a computation that sequences the computations represented by two monad elements. The resulting computation first does t to yield a value v, and then runs the computation returned by f v.

val (>>|) : ( 'a, B.t ) M.t -> ( 'a -> 'b ) -> ( 'b, B.t ) M.t

t >>| f is t >>= (fun a -> return (f a)).

module Let_syntax : sig ... end