package ocaml-base-compiler
Module MoreLabels.Hashtbl
type ('a, 'b) t = ('a, 'b) Hashtbl.tval create : ?random:bool -> int -> ('a, 'b) tval clear : ('a, 'b) t -> unitval reset : ('a, 'b) t -> unitval add : ('a, 'b) t -> key:'a -> data:'b -> unitval find : ('a, 'b) t -> 'a -> 'bval find_opt : ('a, 'b) t -> 'a -> 'b optionval find_all : ('a, 'b) t -> 'a -> 'b listval mem : ('a, 'b) t -> 'a -> boolval remove : ('a, 'b) t -> 'a -> unitval replace : ('a, 'b) t -> key:'a -> data:'b -> unitval iter : f:(key:'a -> data:'b -> unit) -> ('a, 'b) t -> unitval filter_map_inplace :
f:(key:'a -> data:'b -> 'b option) ->
('a, 'b) t ->
unitval fold : f:(key:'a -> data:'b -> 'c -> 'c) -> ('a, 'b) t -> init:'c -> 'cval length : ('a, 'b) t -> inttype statistics = Hashtbl.statisticsval stats : ('a, 'b) t -> statisticsmodule type HashedType = Hashtbl.HashedTypemodule type SeededHashedType = Hashtbl.SeededHashedTypemodule type S = sig ... endmodule type SeededS = sig ... endmodule Make
(H : HashedType) :
S with type key = H.t and type 'a t = 'a Hashtbl.Make(H).tmodule MakeSeeded
(H : SeededHashedType) :
SeededS with type key = H.t and type 'a t = 'a Hashtbl.MakeSeeded(H).t