base

Full standard library replacement for OCaml
IN THIS PACKAGE
Module Base . Monad . Of_monad . Let_syntax
val return : 'a -> 'a M.t
val (>>=) : 'a M.t -> ( 'a -> 'b M.t ) -> 'b 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 M.t -> ( 'a -> 'b ) -> 'b M.t

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

module Let_syntax : sig ... end