Parameter S_to_S2.1-X
include S_without_syntax with type 'a t := 'a t
val all_unit : 'a t list -> 'a tLike
all, but ensures that every monadic value in the list produces a unit value, all of which are discarded rather than being collected into a list.
val all : 'a t list -> 'a tval ignore_m : 'a t -> 'a tignore_m tismap t ~f:(fun _ -> ()).ignore_mused to be calledignore, but we decided that was a bad name, because it shadowed the widely usedCaml.ignore. Some monads still dolet ignore = ignore_mfor historical reasons.
val return : 'a -> 'a treturn vreturns the (trivial) computation that returns v.
module Monad_infix : Infix with type 'a t := 'a tinclude Syntax with type 'a t := 'a t
module Let_syntax : sig ... end