core-lwt
  1. Overview
  2. Docs

Parameters

module T : sig ... end

Signature

type 'a t = 'a T.t
val foldi : 'a t -> init:'b -> f:(int -> 'b -> 'a -> 'b M.t) -> 'b M.t
val fold : 'a t -> init:'b -> f:('b -> 'a -> 'b M.t) -> 'b M.t
val init : ?how:Core_lwt_container_intf.how -> int -> f:(int -> 'a M.t) -> 'a t M.t

default how is `Sequential

val iter : ?how:Core_lwt_container_intf.how -> 'a t -> f:('a -> unit M.t) -> unit M.t
val iteri : ?how:Core_lwt_container_intf.how -> 'a t -> f:(int -> 'a -> unit M.t) -> unit M.t
val map : ?how:Core_lwt_container_intf.how -> 'a t -> f:('a -> 'b M.t) -> 'b t M.t
val filter : ?how:Core_lwt_container_intf.how -> 'a t -> f:('a -> bool M.t) -> 'a t M.t
val filter_map : ?how:Core_lwt_container_intf.how -> 'a t -> f:('a -> 'b option M.t) -> 'b t M.t
val find : 'a t -> f:('a -> bool M.t) -> 'a option M.t
val find_map : 'a t -> f:('a -> 'b option M.t) -> 'b option M.t
val all : 'a M.t t -> 'a t M.t
val all_unit : unit M.t t -> unit M.t