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

Hashtbl.MakeSeeded - Functor building an implementation of the hashtable structure.

Documentation

       Module MakeSeeded
        : (H:SeededHashedType)->sigend

       Functor  building an implementation of the hashtable structure.  The functor Hashtbl.MakeSeeded returns a
       structure containing a type key of keys and a type 'at of hash tables associating data  of  type  'a  to
       keys  of  type  key  .   The  operations perform similarly to those of the generic interface, but use the
       seeded hashing and equality functions specified in the functor argument H instead of generic equality and
       hashing.  The create operation of the result  structure  supports  the  ~random  optional  parameter  and
       returns  randomized  hash  tables  if  ~random:true  is  passed  or  if randomization is globally on (see
       Hashtbl.randomize ).

       Since 4.00

       Parameters:

       "H"

       Hashtbl.SeededHashedTypetypekeytype!'atvalcreate : ?random:bool->int->'atvalclear : 'at->unitvalreset : 'at->unitvalcopy : 'at->'atvaladd : 'at->key->'a->unitvalremove : 'at->key->unitvalfind : 'at->key->'avalfind_opt : 'at->key->'aoptionSince 4.05

       valfind_all : 'at->key->'alistvalreplace : 'at->key->'a->unitvalmem : 'at->key->boolvaliter : (key->'a->unit)->'at->unitvalfilter_map_inplace : (key->'a->'aoption)->'at->unitSince 4.03

       valfold : (key->'a->'acc->'acc)->'at->'acc->'accvallength : 'at->intvalstats : 'at->Hashtbl.statisticsvalto_seq : 'at->(key*'a)Seq.tSince 4.07

       valto_seq_keys : 'at->keySeq.tSince 4.07

       valto_seq_values : 'at->'aSeq.tSince 4.07

       valadd_seq : 'at->(key*'a)Seq.t->unitSince 4.07

       valreplace_seq : 'at->(key*'a)Seq.t->unitSince 4.07

       valof_seq : (key*'a)Seq.t->'atSince 4.07

OCamldoc                                           2025-06-12                             Hashtbl.MakeSeeded(3o)

Module

       Module   Hashtbl.MakeSeeded

Name

       Hashtbl.MakeSeeded - Functor building an implementation of the hashtable structure.

See Also