package seqes

  1. Overview
  2. Docs

MakeTraversors2 is a functor similar to MakeTraversors but for a two-parameter monad.

See examples/seqlwt/ for use.

See the documentation of Sigs2.SEQMON2TRAVERSORS for more details.

Parameters

module Alt : sig ... end
module Ret : sig ... end
module GlueAlt : sig ... end
module GlueMon : sig ... end

Signature

val iter : ('a -> (unit, 'e) Alt.t) -> 'a t -> (unit, 'e) Ret.t
val fold_left : ('a -> 'b -> ('a, 'e) Alt.t) -> 'a -> 'b t -> ('a, 'e) Ret.t
val iteri : (int -> 'a -> (unit, 'e) Alt.t) -> 'a t -> (unit, 'e) Ret.t
val fold_lefti : ('b -> int -> 'a -> ('b, 'e) Alt.t) -> 'b -> 'a t -> ('b, 'e) Ret.t
val for_all : ('a -> (bool, 'e) Alt.t) -> 'a t -> (bool, 'e) Ret.t
val exists : ('a -> (bool, 'e) Alt.t) -> 'a t -> (bool, 'e) Ret.t
val find : ('a -> (bool, 'e) Alt.t) -> 'a t -> ('a option, 'e) Ret.t
val find_map : ('a -> ('b option, 'e) Alt.t) -> 'a t -> ('b option, 'e) Ret.t
val iter2 : ('a -> 'b -> (unit, 'e) Alt.t) -> 'a t -> 'b t -> (unit, 'e) Ret.t
val fold_left2 : ('a -> 'b -> 'c -> ('a, 'e) Alt.t) -> 'a -> 'b t -> 'c t -> ('a, 'e) Ret.t
val for_all2 : ('a -> 'b -> (bool, 'e) Alt.t) -> 'a t -> 'b t -> (bool, 'e) Ret.t
val exists2 : ('a -> 'b -> (bool, 'e) Alt.t) -> 'a t -> 'b t -> (bool, 'e) Ret.t
OCaml

Innovation. Community. Security.