MoreLabels.Hashtbl.MakeSeeded(3)
π NAME π
okay so bestie, this is the MoreLabels.Hashtbl.MakeSeeded(3) page from the OCaml library, and it's literally the functor that builds an implementation of the hashtable structure. slay. π
π§© MODULE π§©
The module in question is MoreLabels.Hashtbl.MakeSeeded. iconic. β¨
π DOCUMENTATION π
πΈ Module MakeSeeded πΈ
Module MakeSeeded
: (H : SeededHashedType) -> sig end
okay so this is the functor that builds 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 they use the seeded hashing and equality functions specified in the functor argument H instead of generic equality and hashing. the result structure's create operation supports the optional ~random parameter and returns randomized hash tables if ~random:true is passed or if randomization is globally on (see MoreLabels.Hashtbl.randomize). π«Ά
Since 4.00
π Parameters π
"H"βMoreLabels.Hashtbl.SeededHashedType
β¨ Signatures β¨
type key
type !'a t
val create : ?random:bool -> int -> 'a tval clear : 'a t -> unitval reset : 'a t -> unitval copy : 'a t -> 'a tval add : 'a t -> key:key -> data:'a -> unitval remove : 'a t -> key -> unitval find_and_remove : 'a t -> key -> 'a optionβ Since 5.5val find : 'a t -> key -> 'aval find_opt : 'a t -> key -> 'a optionβ Since 4.05val find_all : 'a t -> key -> 'a listval replace : 'a t -> key:key -> data:'a -> unitval find_and_replace : 'a t -> key:key -> data:'a -> 'a optionβ Since 5.5val mem : 'a t -> key -> boolval iter : f:(key:key -> data:'a -> unit) -> 'a t -> unitval filter_map_inplace : f:(key:key -> data:'a -> 'a option) -> 'a t -> unitβ Since 4.03val fold : f:(key:key -> data:'a -> 'acc -> 'acc) -> 'a t -> init:'acc -> 'accval length : 'a t -> intval stats : 'a t -> MoreLabels.Hashtbl.statisticsval to_seq : 'a t -> (key * 'a) Seq.tβ Since 4.07val to_seq_keys : 'a t -> key Seq.tβ Since 4.07val to_seq_values : 'a t -> 'a Seq.tβ Since 4.07val add_seq : 'a t -> (key * 'a) Seq.t -> unitβ Since 4.07val replace_seq : 'a t -> (key * 'a) Seq.t -> unitβ Since 4.07val of_seq : (key * 'a) Seq.t -> 'a tβ Since 4.07
mwah π β this page is from OCamldoc, dated 2026-06-22, and yes bestie, it's the MoreLabels.Hashtbl.MakeSeeded(3) manual page. periodt. π
π¦ 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