Console.Ioinclude Core.Monad.S with type 'a t := 'a tval return : 'a 'i 'p 'q. 'a -> 'a tConvert a value to a t.
Sequences computations. bind t ~f computes f v for value(s) v in t. Well-behaved monads satisfy these "laws" (where ( >>= ) is the infix bind operator):
map t ~f is equivalent to bind t ~f:(fun x -> return (f x))return x >>= f is equivalent to f xt >>= return is equivalent to t(t >>= f) >>= g is equivalent to t >>= fun x -> f x >>= gCombines nested t into just one layer. Equivalent to bind t ~f:Fn.id.
Ignores contained values of t. Equivalent to map t ~f:ignore.
module Monad_infix : sig ... endmodule Let_syntax : sig ... endval output_string : out_channel -> string -> unitval output : out_channel -> buf:bytes -> pos:int -> len:int -> unitval stderr : out_channelval stdout : out_channelval flush : out_channel -> unit tval fprintf : attrs:string -> out_channel -> 'a fmt -> 'aval fold_left : 'a Core.List.t -> init:'b -> f:('b -> 'a -> 'b t) -> 'b tval stdout_isatty : unit -> bool tval capable : unit -> bool t