Misc.Stdlib.String.Tbl(3)
Manual name check: this page lives in the OCaml library manual, and its title is Misc.Stdlib.String.Tbl(3). okay so bestie, letβs get into it π
πΈ NAME πΈ
The entire NAME line is Misc.Stdlib.String.Tbl - no description. Thatβs it. The manpage is giving mysterious main character energy and refusing to elaborate ππ.
π§ Module π§
Module Misc.Stdlib.String.Tbl
π Documentation π
okay so under Documentation we have Module Tbl, and the literal signature line is:
Module Tbl
: sig end
Then comes the full type-and-value lineup, no cap β¨
type keyβ this is thekeytype, exactly as written. iconic, minimal, unbothered πtype !'a tβ this is the'a ttype, and yes, that exclamation mark is literally part of it. do not touch it π
β¨ the values, in order, with zero skipped β¨
val create : int -> 'a tβintgoes in,'a tcomes out, per the signature. no extra lore added π«Άval clear : 'a t -> unitβ'a tin,unitout. type vibes only πval reset : 'a t -> unitβ'a tin,unitout again. Since 4.00.val copy : 'a t -> 'a tβ'a tin,'a tout. the signature is doing the talking πΈval add : 'a t -> key -> 'a -> unitβ takes'a t, thenkey, then'a, and givesunit. exact type, no invented behavior π¦val remove : 'a t -> key -> unitβ'a t, thenkey, thenunit. periodt πval find_and_remove : 'a t -> key -> 'a optionβ'a t, thenkey, then an'a option. Since 5.5.val find : 'a t -> key -> 'aβ'a t, thenkey, then'a. the signature said what it said β¨val find_opt : 'a t -> key -> 'a optionβ'a t, thenkey, then'a option. Since 4.05.val find_all : 'a t -> key -> 'a listβ'a t, thenkey, then'a list. no notes π₯val replace : 'a t -> key -> 'a -> unitβ'a t,key,'a, andunit. literally right there in the type πval find_and_replace : 'a t -> key -> 'a -> 'a optionβ'a t,key,'a, and an'a option. Since 5.5.val mem : 'a t -> key -> boolβ'a t, thenkey, thenbool. slay π¦val iter : (key -> 'a -> unit) -> 'a t -> unitβ takes a(key -> 'a -> unit)function, then'a t, then givesunit. exact function shape, bestie πval filter_map_inplace : (key -> 'a -> 'a option) -> 'a t -> unitβ takes a(key -> 'a -> 'a option)function, then'a t, thenunit. Since 4.03.val fold : (key -> 'a -> 'acc -> 'acc) -> 'a t -> 'acc -> 'accβ takes(key -> 'a -> 'acc -> 'acc), then'a t, then'acc, then'acc. no cap πval length : 'a t -> intβ'a tin,intout. cute and typed πΈval stats : 'a t -> Hashtbl.statisticsβ'a tin,Hashtbl.statisticsout. Since 4.00.val to_seq : 'a t -> (key * 'a) Seq.tβ'a tin,(key * 'a) Seq.tout. Since 4.07.val to_seq_keys : 'a t -> key Seq.tβ'a tin,key Seq.tout. Since 4.07.val to_seq_values : 'a t -> 'a Seq.tβ'a tin,'a Seq.tout. Since 4.07.val add_seq : 'a t -> (key * 'a) Seq.t -> unitβ'a t, then(key * 'a) Seq.t, thenunit. Since 4.07.val replace_seq : 'a t -> (key * 'a) Seq.t -> unitβ'a t, then(key * 'a) Seq.t, thenunit. Since 4.07.val of_seq : (key * 'a) Seq.t -> 'a tβ(key * 'a) Seq.tin,'a tout. Since 4.07.
okay bestie, the footer tea: this page is sourced from OCamldoc, dated 2026-06-22, and itβs the Misc.Stdlib.String.Tbl(3) page. bye bestie, go forth and respect the exact signatures πβ¨π
π¦ 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