package extlib-compat

  1. Overview
  2. Docs
type ('a, 'b) t = ('a, 'b) Hashtbl.t
val exists : ('a, 'b) t -> 'a -> bool
val keys : ('a, 'b) t -> 'a Enum.t
val values : ('a, 'b) t -> 'b Enum.t
val enum : ('a, 'b) t -> ('a * 'b) Enum.t
val of_enum : ('a * 'b) Enum.t -> ('a, 'b) t
val find_default : ('a, 'b) t -> 'a -> 'b -> 'b
val find_opt : ('a, 'b) Hashtbl.t -> 'a -> 'b option
val find_option : ('a, 'b) Hashtbl.t -> 'a -> 'b option
val remove_all : ('a, 'b) t -> 'a -> unit
val map : ('b -> 'c) -> ('a, 'b) t -> ('a, 'c) t
val length : ('a, 'b) t -> int
val reset : ('a, 'b) t -> unit
val randomize : unit -> unit
type statistics = {
  1. num_bindings : int;
  2. num_buckets : int;
  3. max_bucket_length : int;
  4. bucket_histogram : int array;
}
val stats : ('a, 'b) t -> statistics
val seeded_hash_param : int -> int -> int -> 'a -> int
val seeded_hash : int -> 'a -> int
val is_randomized : unit -> bool
val filter_map_inplace : ('a -> 'b -> 'b option) -> ('a, 'b) t -> unit
val create : ?random:bool -> int -> ('a, 'b) t
val clear : ('a, 'b) t -> unit
val add : ('a, 'b) t -> 'a -> 'b -> unit
val copy : ('a, 'b) t -> ('a, 'b) t
val find : ('a, 'b) t -> 'a -> 'b
val find_all : ('a, 'b) t -> 'a -> 'b list
val mem : ('a, 'b) t -> 'a -> bool
val remove : ('a, 'b) t -> 'a -> unit
val replace : ('a, 'b) t -> 'a -> 'b -> unit
val iter : ('a -> 'b -> unit) -> ('a, 'b) t -> unit
val fold : ('a -> 'b -> 'c -> 'c) -> ('a, 'b) t -> 'c -> 'c
val hash : 'a -> int
val hash_param : int -> int -> 'a -> int
module type HashedType = sig ... end
module type S = sig ... end
module Make (H : HashedType) : sig ... end
module type SeededHashedType = sig ... end
module type SeededS = sig ... end
module MakeSeeded (H : SeededHashedType) : sig ... end
OCaml

Innovation. Community. Security.