package containers

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type !'a sequence = ('a -> unit) -> unit
type !'a equal = 'a -> 'a -> bool
type !'a ord = 'a -> 'a -> int
type !'a hash = 'a -> int
type !'a with_err = [
  1. | `Error of string
  2. | `Ok of 'a
]
type 'a collection
module PMap : sig ... end
type 'a t
val start : 'a -> 'a t
val of_list : 'a list -> 'a collection t
val of_array : 'a array -> 'a collection t
val of_array_i : 'a array -> (int * 'a) collection t
val of_hashtbl : ('a, 'b) Hashtbl.t -> ('a * 'b) collection t
val of_seq : 'a sequence -> 'a collection t
val of_queue : 'a Queue.t -> 'a collection t
val of_stack : 'a Stack.t -> 'a collection t
val of_string : string -> char collection t
val run : 'a t -> 'a with_err
val run_exn : 'a t -> 'a
val run_no_optim : 'a t -> 'a with_err
val map : ('a -> 'b) -> 'a collection t -> 'b collection t
val filter : ('a -> bool) -> 'a collection t -> 'a collection t
val choose : 'a collection t -> 'a t
val choose_err : 'a collection t -> 'a with_err t
val filter_map : ('a -> 'b option) -> 'a collection t -> 'b collection t
val flat_map : ('a -> 'b collection) -> 'a collection t -> 'b collection t
val flat_map_seq : ('a -> 'b sequence) -> 'a collection t -> 'b collection t
val flat_map_l : ('a -> 'b list) -> 'a collection t -> 'b collection t
val flatten : 'a collection collection t -> 'a collection t
val flatten_l : 'a list collection t -> 'a collection t
val take : int -> 'a collection t -> 'a collection t
val take_while : ('a -> bool) -> 'a collection t -> 'a collection t
val sort : ?cmp:'a ord -> unit -> 'a collection t -> 'a collection t
val distinct : ?cmp:'a ord -> unit -> 'a collection t -> 'a collection t
module M : sig ... end
val group_by : ?cmp:'b ord -> ?eq:'b equal -> ?hash:'b hash -> ('a -> 'b) -> 'a collection t -> ('b, 'a list) PMap.t t
val group_by' : ?cmp:'b ord -> ?eq:'b equal -> ?hash:'b hash -> ('a -> 'b) -> 'a collection t -> ('b * 'a list) collection t
val count : ?cmp:'a ord -> ?eq:'a equal -> ?hash:'a hash -> unit -> 'a collection t -> ('a, int) PMap.t t
val count' : ?cmp:'a ord -> unit -> 'a collection t -> ('a * int) collection t
val fold : ('b -> 'a -> 'b) -> 'b -> 'a collection t -> 'b t
val size : 'a collection t -> int t
val reduce : ('a -> 'b) -> ('a -> 'b -> 'b) -> ('b -> 'c) -> 'a collection t -> 'c t
val reduce_err : ('a -> 'b) -> ('a -> 'b -> 'b) -> ('b -> 'c) -> 'a collection t -> 'c with_err t
val is_empty : 'a collection t -> bool t
val sum : int collection t -> int t
val contains : ?eq:'a equal -> 'a -> 'a collection t -> bool t
val average : int collection t -> int t
val max : int collection t -> int t
val min : int collection t -> int t
val average_err : int collection t -> int with_err t
val max_err : int collection t -> int with_err t
val min_err : int collection t -> int with_err t
val for_all : ('a -> bool) -> 'a collection t -> bool t
val exists : ('a -> bool) -> 'a collection t -> bool t
val find : ('a -> bool) -> 'a collection t -> 'a option t
val find_map : ('a -> 'b option) -> 'a collection t -> 'b option t
val join : ?cmp:'key ord -> ?eq:'key equal -> ?hash:'key hash -> ('a -> 'key) -> ('b -> 'key) -> merge:('key -> 'a -> 'b -> 'c option) -> 'a collection t -> 'b collection t -> 'c collection t
val group_join : ?cmp:'a ord -> ?eq:'a equal -> ?hash:'a hash -> ('b -> 'a) -> 'a collection t -> 'b collection t -> ('a, 'b list) PMap.t t
val product : 'a collection t -> 'b collection t -> ('a * 'b) collection t
val append : 'a collection t -> 'a collection t -> 'a collection t
val inter : ?cmp:'a ord -> ?eq:'a equal -> ?hash:'a hash -> unit -> 'a collection t -> 'a collection t -> 'a collection t
val union : ?cmp:'a ord -> ?eq:'a equal -> ?hash:'a hash -> unit -> 'a collection t -> 'a collection t -> 'a collection t
val diff : ?cmp:'a ord -> ?eq:'a equal -> ?hash:'a hash -> unit -> 'a collection t -> 'a collection t -> 'a collection t
val fst : ('a * 'b) collection t -> 'a collection t
val snd : ('a * 'b) collection t -> 'b collection t
val map1 : ('a -> 'b) -> ('a * 'c) collection t -> ('b * 'c) collection t
val map2 : ('a -> 'b) -> ('c * 'a) collection t -> ('c * 'b) collection t
val flatten_opt : 'a option collection t -> 'a collection t
val opt_unwrap : 'a option t -> 'a t
val bind : ('a -> 'b t) -> 'a t -> 'b t
val (>>=) : 'a t -> ('a -> 'b t) -> 'b t
val return : 'a -> 'a t
val query_map : ('a -> 'b) -> 'a t -> 'b t
val catch : 'a with_err t -> 'a t
val lazy_ : 'a lazy_t t -> 'a t
val to_array : 'a collection t -> 'a array t
val to_seq : 'a collection t -> 'a sequence t
val to_hashtbl : ('a * 'b) collection t -> ('a, 'b) Hashtbl.t t
val to_queue : 'a collection t -> ('a Queue.t -> unit) t
val to_stack : 'a collection t -> ('a Stack.t -> unit) t
module L : sig ... end
module AdaptSet (S : Set.S) : sig ... end
module AdaptMap (M : Map.S) : sig ... end
module IO : sig ... end
OCaml

Innovation. Community. Security.