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

# [NAME](#NAME)

Ephemeron.Kn - Ephemerons with arbitrary number of keys of the same type.

# [Module](#Module)

Module Ephemeron.Kn

# [Documentation](#Documentation)

Module **Kn**  
: **sig end**

Ephemerons with arbitrary number of keys of the same type.

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

an ephemeron with an arbitrary number of keys of the same type

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

Same as **Ephemeron.K1.create**

*val get\_key* : **('k, 'd) t -&gt; int -&gt; 'k option**

Same as **Ephemeron.K1.get\_key**

*val get\_key\_copy* : **('k, 'd) t -&gt; int -&gt; 'k option**

Same as **Ephemeron.K1.get\_key\_copy**

*val set\_key* : **('k, 'd) t -&gt; int -&gt; 'k -&gt; unit**

Same as **Ephemeron.K1.set\_key**

*val unset\_key* : **('k, 'd) t -&gt; int -&gt; unit**

Same as **Ephemeron.K1.unset\_key**

*val check\_key* : **('k, 'd) t -&gt; int -&gt; bool**

Same as **Ephemeron.K1.check\_key**

*val blit\_key* : **('k, 'a) t -&gt;** **int -&gt; ('k, 'b) t -&gt; int -&gt; int -&gt; unit**

Same as **Ephemeron.K1.blit\_key**

*val get\_data* : **('k, 'd) t -&gt; 'd option**

Same as **Ephemeron.K1.get\_data**

*val get\_data\_copy* : **('k, 'd) t -&gt; 'd option**

Same as **Ephemeron.K1.get\_data\_copy**

*val set\_data* : **('k, 'd) t -&gt; 'd -&gt; unit**

Same as **Ephemeron.K1.set\_data**

*val unset\_data* : **('k, 'd) t -&gt; unit**

Same as **Ephemeron.K1.unset\_data**

*val check\_data* : **('k, 'd) t -&gt; bool**

Same as **Ephemeron.K1.check\_data**

*val blit\_data* : **('k, 'd) t -&gt; ('k, 'd) t -&gt; unit**

Same as **Ephemeron.K1.blit\_data**

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

Same as **Ephemeron.K1.make**

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

Same as **Ephemeron.K1.query**

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

Functor building an implementation of a weak hash table

*module MakeSeeded :* **functor (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-09-15 OCamldoc

---

Document: Ephemeron.Kn(3o) from ocaml-4 4.14.4-r3 (Chainguard OS)
Source: https://github.com/ocaml/ocaml
