Ephemeron.K2.MakeSeeded(3)

πŸ’– NAME πŸ’–

okay so bestie, this is the manual page for Ephemeron.K2.MakeSeeded(3) from the OCaml library β€” and it's literally a functor that builds an implementation of a weak hash table. no cap. πŸ’…βœ¨

πŸ¦‹ Module πŸ¦‹

The module is Ephemeron.K2.MakeSeeded, and the whole signature situation is giving:

Module MakeSeeded
 : (H1 : Hashtbl.SeededHashedType) (H2 : Hashtbl.SeededHashedType) ->
sig end

✨ Documentation ✨

Functor building an implementation of a weak hash table. The seed is similar to the one of Hashtbl.MakeSeeded. 🫢

πŸŽ€ Parameters πŸŽ€

  • "H1" β€” Stdlib.Hashtbl.SeededHashedType
  • "H2" β€” Stdlib.Hashtbl.SeededHashedType

Here's every single declaration, bestie β€” all the types and vals, fully present, no details ghosted:

  • type key
  • type !'a t
  • val create : ?random:bool -> int -> 'a t
  • val clear : 'a t -> unit
  • val reset : 'a t -> unit
  • val copy : 'a t -> 'a t
  • val add : 'a t -> key -> 'a -> unit
  • val remove : 'a t -> key -> unit
  • val find : 'a t -> key -> 'a
  • val find_opt : 'a t -> key -> 'a option
  • val find_all : 'a t -> key -> 'a list
  • val replace : 'a t -> key -> 'a -> unit
  • val mem : 'a t -> key -> bool
  • val length : 'a t -> int
  • val stats : 'a t -> Hashtbl.statistics
  • val add_seq : 'a t -> (key * 'a) Seq.t -> unit
  • val replace_seq : 'a t -> (key * 'a) Seq.t -> unit
  • val of_seq : (key * 'a) Seq.t -> 'a t
  • val clean : 'a t -> unit β€” remove all dead bindings. Done automatically during automatic resizing. 🧹
  • val stats_alive : 'a t -> Hashtbl.statistics β€” same as Hashtbl.SeededS.stats but only count the alive bindings. πŸ‘‘

Catch you later, bestie β€” this cutie was served up by OCamldoc on 2026-06-22. πŸ’…βœ¨πŸ«Ά

πŸ“¦ where this page comes from