package stdcompat

  1. Overview
  2. Docs
type statistics = Stdlib.Hashtbl.statistics = {
  1. num_bindings : int;
  2. num_buckets : int;
  3. max_bucket_length : int;
  4. bucket_histogram : int array;
}
type ('a, 'b) t = ('a, 'b) Stdlib.Hashtbl.t
val clear : ('a, 'b) Stdlib.Hashtbl.t -> unit
val copy : ('a, 'b) Stdlib.Hashtbl.t -> ('a, 'b) Stdlib.Hashtbl.t
val add : ('a, 'b) Stdlib.Hashtbl.t -> 'a -> 'b -> unit
val find : ('a, 'b) Stdlib.Hashtbl.t -> 'a -> 'b
val find_all : ('a, 'b) Stdlib.Hashtbl.t -> 'a -> 'b list
val mem : ('a, 'b) Stdlib.Hashtbl.t -> 'a -> bool
val remove : ('a, 'b) Stdlib.Hashtbl.t -> 'a -> unit
val replace : ('a, 'b) Stdlib.Hashtbl.t -> 'a -> 'b -> unit
val iter : ('a -> 'b -> unit) -> ('a, 'b) Stdlib.Hashtbl.t -> unit
val fold : ('a -> 'b -> 'c -> 'c) -> ('a, 'b) Stdlib.Hashtbl.t -> 'c -> 'c
module type HashedType = Stdlib.Hashtbl.HashedType
val hash : 'a -> int
val to_seq : ('a, 'b) Stdlib.Hashtbl.t -> ('a * 'b) Stdlib.Seq.t
val to_seq_values : ('a, 'b) Stdlib.Hashtbl.t -> 'b Stdlib.Seq.t
val to_seq_keys : ('a, 'b) Stdlib.Hashtbl.t -> 'a Stdlib.Seq.t
val replace_seq : ('a, 'b) Stdlib.Hashtbl.t -> ('a * 'b) Stdlib.Seq.t -> unit
val add_seq : ('a, 'b) Stdlib.Hashtbl.t -> ('a * 'b) Stdlib.Seq.t -> unit
val of_seq : ('a * 'b) Stdlib.Seq.t -> ('a, 'b) Stdlib.Hashtbl.t
val find_opt : ('a, 'b) Stdlib.Hashtbl.t -> 'a -> 'b option
val is_randomized : unit -> bool
val filter_map_inplace : ('a -> 'b -> 'b option) -> ('a, 'b) Stdlib.Hashtbl.t -> unit
val length : ('a, 'b) Stdlib.Hashtbl.t -> int
val create : ?random:bool -> int -> ('a, 'b) Stdlib.Hashtbl.t
val reset : ('a, 'b) Stdlib.Hashtbl.t -> unit
val randomize : unit -> unit
val hash_param : int -> int -> 'a -> int
val seeded_hash : int -> 'a -> int
val seeded_hash_param : int -> int -> int -> 'a -> int
val stats : ('a, 'b) Stdlib.Hashtbl.t -> Stdlib.Hashtbl.statistics
module type S = sig ... end
module Make = Stdlib.Hashtbl.Make
module type SeededHashedType = sig ... end
module type SeededS = sig ... end
module MakeSeeded = Stdlib.Hashtbl.MakeSeeded
val rebuild : ?random:bool -> ('a, 'b) Stdlib.Hashtbl.t -> ('a, 'b) Stdlib.Hashtbl.t
OCaml

Innovation. Community. Security.