Ephemeron.K1(3) OCaml library Ephemeron.K1(3)

# [NAME](#NAME)

Ephemeron.K1 - Ephemerons with one key.

# [Module](#Module)

Module Ephemeron.K1

# [Documentation](#Documentation)

Module **K1**  
: **sig end**

Ephemerons with one key.

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

an ephemeron with one key

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

**Ephemeron.K1.make k d** creates an ephemeron with key **k** and data **d** .

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

**Ephemeron.K1.query eph key** returns **Some x** (where **x** is the ephemeron's data) if **key** is physically equal to **eph** 's key, and **None** if **eph** is empty or **key** is not equal to **eph** 's key.

*module Make :* **(H : Hashtbl.HashedType) -&gt; sig end**

Functor building an implementation of a weak hash table

*module MakeSeeded :* **(H : Hashtbl.SeededHashedType) -&gt; sig end**

Functor building an implementation of a weak hash table. The seed is similar to the one of **Hashtbl.MakeSeeded** .

*module Bucket :* **sig end**

2026-10-01 OCamldoc

---

Document: Ephemeron.K1(3o) from ocaml 5.5.1-r1 (Chainguard OS)
Source: https://github.com/ocaml/ocaml
