mirror of
https://github.com/c-cube/ocaml-containers.git
synced 2025-12-07 11:45:31 -05:00
2 lines
No EOL
2.2 KiB
HTML
2 lines
No EOL
2.2 KiB
HTML
<!DOCTYPE html>
|
||
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>H (containers.Containers.Hashtbl.MakeSeeded.H)</title><link rel="stylesheet" href="../../../../../_odoc-theme/odoc.css"/><meta charset="utf-8"/><meta name="generator" content="odoc 2.2.0"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body class="odoc"><nav class="odoc-nav"><a href="../index.html">Up</a> – <a href="../../../../index.html">containers</a> » <a href="../../../index.html">Containers</a> » <a href="../../index.html">Hashtbl</a> » <a href="../index.html">MakeSeeded</a> » H</nav><header class="odoc-preamble"><h1>Parameter <code><span>MakeSeeded.H</span></code></h1></header><div class="odoc-content"><div class="odoc-spec"><div class="spec type anchored" id="type-t"><a href="#type-t" class="anchor"></a><code><span><span class="keyword">type</span> t</span></code></div><div class="spec-doc"><p>The type of the hashtable keys.</p></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-equal"><a href="#val-equal" class="anchor"></a><code><span><span class="keyword">val</span> equal : <span><a href="#type-t">t</a> <span class="arrow">-></span></span> <span><a href="#type-t">t</a> <span class="arrow">-></span></span> bool</span></code></div><div class="spec-doc"><p>The equality predicate used to compare keys.</p></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-hash"><a href="#val-hash" class="anchor"></a><code><span><span class="keyword">val</span> hash : <span>int <span class="arrow">-></span></span> <span><a href="#type-t">t</a> <span class="arrow">-></span></span> int</span></code></div><div class="spec-doc"><p>A seeded hashing function on keys. The first argument is the seed. It must be the case that if <code>equal x y</code> is true, then <code>hash seed x = hash seed y</code> for any value of <code>seed</code>. A suitable choice for <code>hash</code> is the function <a href="../../../../../ocaml/Stdlib/Hashtbl/index.html#val-seeded_hash"><code>Stdlib.Hashtbl.seeded_hash</code></a> below.</p></div></div></div></body></html> |