package containers

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type 'a t
val empty : 'a t
val mem : 'a t -> 'a -> bool
val iter : 'a t -> ('a -> unit) -> unit
val fold : 'a t -> 'b -> ('b -> 'a -> 'b) -> 'b
val cardinal : 'a t -> int
val singleton : ?eq:('a -> 'a -> bool) -> 'a -> 'a t
val mk_generic : ?cardinal:(unit -> int) -> mem:('a -> bool) -> iter:(('a -> unit) -> unit) -> 'a t
val of_hashtbl : ('a, 'b) Hashtbl.t -> 'a t
val filter : 'a t -> ('a -> bool) -> 'a t
val union : 'a t -> 'a t -> 'a t
val intersection : 'a t -> 'a t -> 'a t
val product : 'a t -> 'b t -> ('a * 'b) t
val to_seq : 'a t -> 'a CCSequence.t
val to_list : 'a t -> 'a list
type 'a builder
val mk_builder : add:('a -> unit) -> get:(unit -> 'a t) -> 'a builder
val builder_hash : ?size:int -> ?eq:('a -> 'a -> bool) -> ?hash:('a -> int) -> unit -> 'a builder
val builder_cmp : ?cmp:('a -> 'a -> int) -> unit -> 'a builder
val of_seq_builder : builder:'a builder -> 'a CCSequence.t -> 'a t
val of_seq_hash : ?eq:('a -> 'a -> bool) -> ?hash:('a -> int) -> 'a CCSequence.t -> 'a t
val of_seq_cmp : ?cmp:('a -> 'a -> int) -> 'a CCSequence.t -> 'a t
val of_list : 'a list -> 'a t
val map : ?builder:'b builder -> 'a t -> f:('a -> 'b) -> 'b t
val hash_join : ?eq:('key -> 'key -> bool) -> ?size:int -> ?hash:('key -> int) -> ?builder:'res builder -> project1:('a -> 'key) -> project2:('b -> 'key) -> merge:('a -> 'b -> 'res) -> 'a t -> 'b t -> 'res t
module MakeHash (X : Hashtbl.HashedType) : sig ... end
module MakeSet (S : Set.S) : sig ... end
OCaml

Innovation. Community. Security.