Hashtbl.MakeSeeded(3)
π NAME π
Okay so Hashtbl.MakeSeeded(3) is from the OCaml library, and it's a functor building an implementation of the hashtable structure. Bestie, it's giving reusable hash-table factory with seeded hashing, iykyk. π
π¦ Module π¦
Here's the exact module shape, no cap:
Module MakeSeeded : (H : SeededHashedType) -> sig end
β¨ Documentation β¨
πΈ Module MakeSeeded πΈ
Functor building an implementation of the hashtable structure. The functor Hashtbl.MakeSeeded returns a structure containing a type key of keys and a type 'a t of hash tables associating data of type 'a to keys of type key. The operations perform similarly to those of the generic interface, but use the seeded hashing and equality functions specified in the functor argument H instead of generic equality and hashing. The create operation of the result structure supports the ~random optional parameter and returns randomized hash tables if ~random:true is passed or if randomization is globally on (see Hashtbl.randomize).
Since 4.00 π«Ά
π Parameters π
HβHashtbl.SeededHashedType. That's the vibe check for your seeded hashing + equality setup. π
β The types it hands you β
type key
type !'a t
π The values, all exact, no edits π
val create : ?random:bool -> int -> 'a tval clear : 'a t -> unitval reset : 'a t -> unitval copy : 'a t -> 'a tval add : 'a t -> key -> 'a -> unitval remove : 'a t -> key -> unitval find_and_remove : 'a t -> key -> 'a optionβ Since 5.5 β¨val find : 'a t -> key -> 'aval find_opt : 'a t -> key -> 'a optionβ Since 4.05 πΈval find_all : 'a t -> key -> 'a listval replace : 'a t -> key -> 'a -> unitval find_and_replace : 'a t -> key -> 'a -> 'a optionβ Since 5.5 π₯val mem : 'a t -> key -> boolval iter : (key -> 'a -> unit) -> 'a t -> unitval filter_map_inplace : (key -> 'a -> 'a option) -> 'a t -> unitβ Since 4.03 π¦val fold : (key -> 'a -> 'acc -> 'acc) -> 'a t -> 'acc -> 'accval length : 'a t -> intval stats : 'a t -> Hashtbl.statisticsval to_seq : 'a t -> (key * 'a) Seq.tβ Since 4.07 πval to_seq_keys : 'a t -> key Seq.tβ Since 4.07 πval to_seq_values : 'a t -> 'a Seq.tβ Since 4.07 πval add_seq : 'a t -> (key * 'a) Seq.t -> unitβ Since 4.07 πval replace_seq : 'a t -> (key * 'a) Seq.t -> unitβ Since 4.07 πval of_seq : (key * 'a) Seq.t -> 'a tβ Since 4.07 π
Okay bye bestie πβ¨ This iconic little page came from OCamldoc on 2026-06-22, and the manual handle is Hashtbl.MakeSeeded(3) ππ
π¦ where this page comes from
- arch rolling: ocaml 5.5.0-1 Β· LGPL2.1 AND custom: QPL-1.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms