Module Monad.Ident
include Base__.Monad_intf.Syntax with type 'a t := 'a t
module Let_syntax : sig ... end
include Base__.Monad_intf.S_without_syntax with type 'a t := 'a t
val all_unit : 'a t list -> 'a t
Like
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 t
val ignore_m : 'a t -> 'a t
ignore_m t
ismap t ~f:(fun _ -> ())
.ignore_m
used to be calledignore
, but we decided that was a bad name, because it shadowed the widely usedCaml.ignore
. Some monads still dolet ignore = ignore_m
for historical reasons.
val return : 'a -> 'a t
return v
returns the (trivial) computation that returns v.
module Monad_infix : sig ... end