package containers

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type 'a t
val map : ('a -> 'b io) -> 'a t -> 'b t
val map_pure : ('a -> 'b) -> 'a t -> 'b t
val filter_map : ('a -> 'b option) -> 'a t -> 'b t
val filter : ('a -> bool) -> 'a t -> 'a t
val flat_map : ('a -> 'b t io) -> 'a t -> 'b t
val take : int -> 'a t -> 'a t
val drop : int -> 'a t -> 'a t
val take_while : ('a -> bool io) -> 'a t -> 'a t
val drop_while : ('a -> bool io) -> 'a t -> 'a t
val general_iter : ('b -> 'a -> [ `Continue of 'b * 'c option | `Stop ] io) -> 'b -> 'a t -> 'c t
val tee : ('a -> unit io) list -> 'a t -> 'a t
val iter : ('a -> 'b io) -> 'a t -> unit io
val length : 'a t -> int io
val fold : ('b -> 'a -> 'b io) -> 'b -> 'a t -> 'b io
val fold_pure : ('b -> 'a -> 'b) -> 'b -> 'a t -> 'b io
type !'a step_result =
  1. | Yield of 'a
  2. | Stop
type 'a gen = unit -> 'a step_result io
val of_fun : 'a gen -> 'a t
val empty : 'a t
val singleton : 'a -> 'a t
val cons : 'a -> 'a t -> 'a t
val of_list : 'a list -> 'a t
val of_array : 'a array -> 'a t
val chunks : size:int -> Pervasives.in_channel -> string t
val lines : Pervasives.in_channel -> string t
val words : string t -> string t
val output : ?sep:string -> Pervasives.out_channel -> string t -> unit io
OCaml

Innovation. Community. Security.