man-pages/man3/MoreLabels.Hashtbl.SeededHashedType.3o.html
2021-03-31 01:06:50 +01:00

95 lines
1.6 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML><HEAD><TITLE>Man page of MoreLabels.Hashtbl.SeededHashedType</TITLE>
</HEAD><BODY>
<H1>MoreLabels.Hashtbl.SeededHashedType</H1>
Section: OCaml library (3o)<BR>Updated: 2020-01-30<BR><A HREF="#index">Index</A>
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>
MoreLabels.Hashtbl.SeededHashedType - no description
<A NAME="lbAC">&nbsp;</A>
<H2>Module type</H2>
Module type MoreLabels.Hashtbl.SeededHashedType
<A NAME="lbAD">&nbsp;</A>
<H2>Documentation</H2>
<P>
Module type
<B>SeededHashedType</B>
<BR>&nbsp;=&nbsp;
<B>Hashtbl.SeededHashedType</B>
<P>
<P>
<P>
<P>
<P>
<P>
<P>
<I>type t </I>
<P>
<P>
The type of the hashtable keys.
<P>
<P>
<P>
<I>val equal </I>
:
<B>t -&gt; t -&gt; bool</B>
<P>
The equality predicate used to compare keys.
<P>
<P>
<P>
<I>val hash </I>
:
<B>int -&gt; t -&gt; int</B>
<P>
A seeded hashing function on keys. The first argument is
the seed. It must be the case that if
<B>equal x y</B>
is true,
then
<B>hash seed x = hash seed y</B>
for any value of
<B>seed</B>
.
A suitable choice for
<B>hash</B>
is the function
<B>Hashtbl.seeded_hash</B>
below.
<P>
<P>
<P>
<HR>
<A NAME="index">&nbsp;</A><H2>Index</H2>
<DL>
<DT id="1"><A HREF="#lbAB">NAME</A><DD>
<DT id="2"><A HREF="#lbAC">Module type</A><DD>
<DT id="3"><A HREF="#lbAD">Documentation</A><DD>
</DL>
<HR>
This document was created by
<A HREF="/cgi-bin/man/man2html">man2html</A>,
using the manual pages.<BR>
Time: 00:05:48 GMT, March 31, 2021
</BODY>
</HTML>