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.K1.Bucket - no description

Documentation

       Module Bucket
        : sigendtype('k,'d)t

       A bucket is a mutable "list" of ephemerons.

       valmake : unit->('k,'d)t

       Create a new bucket.

       valadd : ('k,'d)t->'k->'d->unit

       Add an ephemeron to the bucket.

       valremove : ('k,'d)t->'k->unitremovebk removes from b the most-recently added ephemeron with key k , or does nothing if there is no
       such ephemeron.

       valfind : ('k,'d)t->'k->'doption

       Returns the data of the most-recently added ephemeron with the given key, or None if  there  is  no  such
       ephemeron.

       vallength : ('k,'d)t->int

       Returns an upper bound on the length of the bucket.

       valclear : ('k,'d)t->unit

       Remove all ephemerons from the bucket.

OCamldoc                                           2025-06-12                            Ephemeron.K1.Bucket(3o)

Module

       Module   Ephemeron.K1.Bucket

Name

       Ephemeron.K1.Bucket - no description

See Also