MoreLabels.Hashtbl.S(3)
π MoreLabels.Hashtbl.S(3) π
okay so, bestie, we are deep in the OCaml library manual and this page is giving signature-only, no-drama, all-structure energy. Itβs MoreLabels.Hashtbl.S(3), and the whole point is that this is the output signature of the functor MoreLabels.Hashtbl.Make. no cap. π«Ά
πΈ NAME πΈ
MoreLabels.Hashtbl.S β the output signature of the functor MoreLabels.Hashtbl.Make. Thatβs the whole name section, and it ate. π
π Module type π
Module type MoreLabels.Hashtbl.S
thatβs the module type in question, iconic. β¨
β¨ Documentation β¨
π Module type S π
Module type S
= sig end
The output signature of the functor MoreLabels.Hashtbl.Make.
Hereβs the whole cast, in order, with every signature exactly as written. periodt. π
type keyβ the key type, exactly as written. π¦type !'a tβ the'a ttype, with the!exactly where the original puts it. no notes added. β¨val create : int -> 'a tβ takes anintand returns an'a t. thatβs the signature, bestie. πval clear : 'a t -> unitβ takes an'a tand returnsunit. πΈval reset : 'a t -> unitβ same unit-returning energy. Since 4.00. π«Άval copy : 'a t -> 'a tβ'a tin,'a tout. πval add : 'a t -> key:key -> data:'a -> unitβ takes'a t, labelledkey:key, labelleddata:'a, and returnsunit. πval remove : 'a t -> key -> unitβ takes'a tandkey, returnsunit. πval find_and_remove : 'a t -> key -> 'a optionβ takes'a tandkey, returns'a option. Since 5.5. π¦val find : 'a t -> key -> 'aβ takes'a tandkey, returns'a. β¨val find_opt : 'a t -> key -> 'a optionβ takes'a tandkey, returns'a option. Since 4.05. πΈval find_all : 'a t -> key -> 'a listβ takes'a tandkey, returns'a list. πval replace : 'a t -> key:key -> data:'a -> unitβ takes'a t, labelledkey:key, labelleddata:'a, and returnsunit. πval find_and_replace : 'a t -> key:key -> data:'a -> 'a optionβ takes'a t, labelledkey:key, labelleddata:'a, and returns'a option. Since 5.5. πval mem : 'a t -> key -> boolβ takes'a tandkey, returnsbool. π¦val iter : f:(key:key -> data:'a -> unit) -> 'a t -> unitβ takes a functionfwith labelledkey:keyanddata:'a, then an'a t, and returnsunit. β¨val filter_map_inplaceβ the whole signature is a two-liner, exactly:
val filter_map_inplace : f:(key:key -> data:'a -> 'a option) -> 'a t ->
unit
Since 4.03. πΈ
val foldβ another two-liner, line break and all:
val fold : f:(key:key -> data:'a -> 'acc -> 'acc) -> 'a t -> init:'acc
-> 'acc
thatβs the full signature. π
val length : 'a t -> intβ takes an'a tand returns anint. πval stats : 'a t -> MoreLabels.Hashtbl.statisticsβ takes an'a tand returnsMoreLabels.Hashtbl.statistics. Since 4.00. πval to_seq : 'a t -> (key * 'a) Seq.tβ takes an'a tand returns a(key * 'a) Seq.t. Since 4.07. π¦val to_seq_keys : 'a t -> key Seq.tβ takes an'a tand returns akey Seq.t. Since 4.07. β¨val to_seq_values : 'a t -> 'a Seq.tβ takes an'a tand returns an'a Seq.t. Since 4.07. πΈval add_seq : 'a t -> (key * 'a) Seq.t -> unitβ takes an'a tand a(key * 'a) Seq.t, returnsunit. Since 4.07. πval replace_seq : 'a t -> (key * 'a) Seq.t -> unitβ takes an'a tand a(key * 'a) Seq.t, returnsunit. Since 4.07. πval of_seq : (key * 'a) Seq.t -> 'a tβ takes a(key * 'a) Seq.tand returns an'a t. Since 4.07. π
mwah π β thatβs the whole page, bestie. This cutie was brought to you by OCamldoc, dated 2026-06-22, and itβs still MoreLabels.Hashtbl.S(3) at the very end. 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