MoreLabels.Hashtbl.S(3) OCaml library MoreLabels.Hashtbl.S(3)

# [NAME](#NAME)

MoreLabels.Hashtbl.S - The output signature of the functor MoreLabels.Hashtbl.Make.

# [Module type](#Module_type)

Module type MoreLabels.Hashtbl.S

# [Documentation](#Documentation)

Module type **S**  
\= **sig end**

The output signature of the functor **MoreLabels.Hashtbl.Make** .

*type key*

*type* **!'a** *t*

*val create* : **int -&gt; 'a t**

*val clear* : **'a t -&gt; unit**

*val reset* : **'a t -&gt; unit**

**Since** 4.00

*val copy* : **'a t -&gt; 'a t**

*val add* : **'a t -&gt; key:key -&gt; data:'a -&gt; unit**

*val remove* : **'a t -&gt; key -&gt; unit**

*val find\_and\_remove* : **'a t -&gt; key -&gt; 'a option**

**Since** 5.5

*val find* : **'a t -&gt; key -&gt; 'a**

*val find\_opt* : **'a t -&gt; key -&gt; 'a option**

**Since** 4.05

*val find\_all* : **'a t -&gt; key -&gt; 'a list**

*val replace* : **'a t -&gt; key:key -&gt; data:'a -&gt; unit**

*val find\_and\_replace* : **'a t -&gt;** **key:key -&gt; data:'a -&gt; 'a option**

**Since** 5.5

*val mem* : **'a t -&gt; key -&gt; bool**

*val iter* : **f:(key:key -&gt; data:'a -&gt; unit) -&gt;** **'a t -&gt; unit**

*val filter\_map\_inplace* : **f:(key:key -&gt; data:'a -&gt; 'a option) -&gt;** **'a t -&gt; unit**

**Since** 4.03

*val fold* : **f:(key:key -&gt; data:'a -&gt; 'acc -&gt; 'acc) -&gt;** **'a t -&gt; init:'acc -&gt; 'acc**

*val length* : **'a t -&gt; int**

*val stats* : **'a t -&gt; MoreLabels.Hashtbl.statistics**

**Since** 4.00

*val to\_seq* : **'a t -&gt; (key * 'a) Seq.t**

**Since** 4.07

*val to\_seq\_keys* : **'a t -&gt; key Seq.t**

**Since** 4.07

*val to\_seq\_values* : **'a t -&gt; 'a Seq.t**

**Since** 4.07

*val add\_seq* : **'a t -&gt;** **(key * 'a) Seq.t -&gt; unit**

**Since** 4.07

*val replace\_seq* : **'a t -&gt;** **(key * 'a) Seq.t -&gt; unit**

**Since** 4.07

*val of\_seq* : **(key * 'a) Seq.t -&gt; 'a t**

**Since** 4.07

2026-10-01 OCamldoc

---

Document: MoreLabels.Hashtbl.S(3o) from ocaml 5.5.1-r1 (Chainguard OS)
Source: https://github.com/ocaml/ocaml
