Ephemeron.Kn.Bucket(3) OCaml library Ephemeron.Kn.Bucket(3)

# [NAME](#NAME)

Ephemeron.Kn.Bucket - no description

# [Module](#Module)

Module Ephemeron.Kn.Bucket

# [Documentation](#Documentation)

Module **Bucket**  
: **sig end**

*type* **('k, 'd)** *t*

A bucket is a mutable "list" of ephemerons.

*val make* : **unit -&gt; ('k, 'd) t**

Create a new bucket.

*val add* : **('k, 'd) t -&gt; 'k array -&gt; 'd -&gt; unit**

Add an ephemeron to the bucket.

*val remove* : **('k, 'd) t -&gt; 'k array -&gt; unit**

**remove b k** removes from **b** the most-recently added ephemeron with keys **k** , or does nothing if there is no such ephemeron.

*val find* : **('k, 'd) t -&gt; 'k array -&gt; 'd option**

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

*val length* : **('k, 'd) t -&gt; int**

Returns an upper bound on the length of the bucket.

*val clear* : **('k, 'd) t -&gt; unit**

Remove all ephemerons from the bucket.

2026-10-23 OCamldoc

---

Document: Ephemeron.Kn.Bucket(3o) from ocaml 5.5.2-r0 (Chainguard OS)
Source: https://github.com/ocaml/ocaml
