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.Kn.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->'karray->'d->unit

       Add an ephemeron to the bucket.

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

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

       Returns the data of the most-recently added ephemeron with the given keys, 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.Kn.Bucket(3o)

Module

       Module   Ephemeron.Kn.Bucket

Name

       Ephemeron.Kn.Bucket - no description

See Also