logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Ephemeron.K2.Make - Functor building an implementation of a weak hash table

Documentation

       Module Make
        : (H1:Hashtbl.HashedType)(H2:Hashtbl.HashedType)->sigend

       Functor building an implementation of a weak hash table

       Parameters:

       "H1"

       Stdlib.Hashtbl.HashedType

       "H2"

       Stdlib.Hashtbl.HashedType

       Propose  the  same interface as usual hash table. However since the bindings are weak, even if memhk is
       true, a subsequent findhk may raise Not_found because the garbage collector can run between the two.

       typekeytype!'atvalcreate : int->'atvalclear : 'at->unitvalreset : 'at->unitvalcopy : 'at->'atvaladd : 'at->key->'a->unitvalremove : 'at->key->unitvalfind : 'at->key->'avalfind_opt : 'at->key->'aoptionvalfind_all : 'at->key->'alistvalreplace : 'at->key->'a->unitvalmem : 'at->key->boolvallength : 'at->intvalstats : 'at->Hashtbl.statisticsvaladd_seq : 'at->(key*'a)Seq.t->unitvalreplace_seq : 'at->(key*'a)Seq.t->unitvalof_seq : (key*'a)Seq.t->'atvalclean : 'at->unit

       remove all dead bindings. Done automatically during automatic resizing.

       valstats_alive : 'at->Hashtbl.statistics

       same as Hashtbl.SeededS.stats but only count the alive bindings

OCamldoc                                           2025-06-12                              Ephemeron.K2.Make(3o)

Module

       Module   Ephemeron.K2.Make

Name

       Ephemeron.K2.Make - Functor building an implementation of a weak hash table

See Also