Module K1.MakeSeeded
Functor building an implementation of a weak hash table. The seed is similar to the one of Hashtbl.MakeSeeded.
Parameters
Signature
include Hashtbl.SeededS
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 : 'a t -> key -> 'aval find_opt : 'a t -> key -> 'a option- since
- 4.05.0
val find_all : 'a t -> key -> 'a listval replace : 'a t -> key -> 'a -> unitval 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.0
val clean : 'a t -> unitremove all dead bindings. Done automatically during automatic resizing.
val stats_alive : 'a t -> Hashtbl.statisticssame as
Hashtbl.SeededS.stats but only count the alive bindings