package containers

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type (!'a, !'b) t = {
  1. mutable buckets : ('a, 'b) bucket array;
  2. mutable size : int;
  3. eq : 'a -> 'a -> bool;
  4. hash : 'a -> int;
  5. max_load : float;
}
and (!'a, !'b) bucket =
  1. | Empty
  2. | Deleted
  3. | Used of 'a * 'b * int
val create : ?max_load:float -> ?eq:('a -> 'a -> bool) -> ?hash:('a -> int) -> int -> ('a, 'b) t
module type Hashable = sig ... end
val create_tc : (module Hashable with type t = 'a) -> int -> ('a, 'b) t
val copy : ('a, 'b) t -> ('a, 'b) t
val clear : ('a, 'b) t -> unit
val find : ('a, 'b) t -> 'a -> 'b
val replace : ('a, 'b) t -> 'a -> 'b -> unit
val add : ('a, 'b) t -> 'a -> 'b -> unit
val remove : ('a, 'b) t -> 'a -> unit
val length : ('a, 'b) t -> int
val mem : ('a, 'b) t -> 'a -> bool
val iter : ('a -> 'b -> unit) -> ('a, 'b) t -> unit
val map : ('a -> 'b -> 'c) -> ('a, 'b) t -> ('a, 'c) t
val filter : ('a -> 'b -> bool) -> ('a, 'b) t -> unit
val fold : ('c -> 'a -> 'b -> 'c) -> 'c -> ('a, 'b) t -> 'c
val of_seq : ('a, 'b) t -> ('a * 'b) CCSequence.t -> unit
val to_seq : ('a, 'b) t -> ('a * 'b) CCSequence.t
val stats : ('a, 'b) t -> int * int * int * int * int * int
val get_eq : ('v, 'a) t -> 'v -> 'v -> bool
val get_hash : ('v, 'a) t -> 'v -> int
OCaml

Innovation. Community. Security.