module Bucket:sig..end
type ('k, 'd) t
A bucket is a mutable "list" of ephemerons.
val make : unit -> ('k, 'd) tCreate a new bucket.
val add : ('k, 'd) t -> 'k -> 'd -> unitAdd an ephemeron to the bucket.
val remove : ('k, 'd) t -> 'k -> unitremove b k removes from b the most-recently added
ephemeron with key k, or does nothing if there is no such
ephemeron.
val find : ('k, 'd) t -> 'k -> 'd optionReturns the data of the most-recently added ephemeron with the
given key, or None if there is no such ephemeron.
val length : ('k, 'd) t -> intReturns an upper bound on the length of the bucket.
val clear : ('k, 'd) t -> unitRemove all ephemerons from the bucket.