package async_kernel

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type 'a t
val foldi : 'a t -> init:'b -> f:(int -> 'b -> 'a -> 'b t) -> 'b t
val fold : 'a t -> init:'b -> f:('b -> 'a -> 'b t) -> 'b t
val find : 'a t -> f:('a -> bool t) -> 'a option t
val findi : 'a t -> f:(int -> 'a -> bool t) -> (int * 'a) option t
val find_map : 'a t -> f:('a -> 'b option t) -> 'b option t
val find_mapi : 'a t -> f:(int -> 'a -> 'b option t) -> 'b option t
val exists : 'a t -> f:('a -> bool t) -> bool t
val existsi : 'a t -> f:(int -> 'a -> bool t) -> bool t
val for_all : 'a t -> f:('a -> bool t) -> bool t
val for_alli : 'a t -> f:(int -> 'a -> bool t) -> bool t
val all : 'a t t -> 'a t t
val all_unit : unit t t -> unit t

Deferred iterators

In the following, the default how is `Sequential

val init : ?how:Monad_sequence.how -> int -> f:(int -> 'a t) -> 'a t t
val iter : ?how:Monad_sequence.how -> 'a t -> f:('a -> unit t) -> unit t
val iteri : ?how:Monad_sequence.how -> 'a t -> f:(int -> 'a -> unit t) -> unit t
val map : ?how:Monad_sequence.how -> 'a t -> f:('a -> 'b t) -> 'b t t
val mapi : ?how:Monad_sequence.how -> 'a t -> f:(int -> 'a -> 'b t) -> 'b t t
val filter : ?how:Monad_sequence.how -> 'a t -> f:('a -> bool t) -> 'a t t
val filteri : ?how:Monad_sequence.how -> 'a t -> f:(int -> 'a -> bool t) -> 'a t t
val filter_map : ?how:Monad_sequence.how -> 'a t -> f:('a -> 'b option t) -> 'b t t
val filter_mapi : ?how:Monad_sequence.how -> 'a t -> f:(int -> 'a -> 'b option t) -> 'b t t
val concat_map : ?how:Monad_sequence.how -> 'a t -> f:('a -> 'b t t) -> 'b t t
val concat_mapi : ?how:Monad_sequence.how -> 'a t -> f:(int -> 'a -> 'b t t) -> 'b t t
OCaml

Innovation. Community. Security.