iter/api/Sequence.Map.Adapt.html
2017-02-22 13:24:46 +01:00

50 lines
No EOL
3.3 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<link rel="stylesheet" href="style.css" type="text/css">
<meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="Start" href="index.html">
<link rel="next" href="Sequence.Map.Make.html">
<link rel="Up" href="Sequence.Map.html">
<link title="Index of types" rel=Appendix href="index_types.html">
<link title="Index of exceptions" rel=Appendix href="index_exceptions.html">
<link title="Index of values" rel=Appendix href="index_values.html">
<link title="Index of modules" rel=Appendix href="index_modules.html">
<link title="Index of module types" rel=Appendix href="index_module_types.html">
<link title="Sequence" rel="Chapter" href="Sequence.html">
<link title="SequenceLabels" rel="Chapter" href="SequenceLabels.html"><title>Sequence.Map.Adapt</title>
</head>
<body>
<div class="navbar">&nbsp;<a class="up" href="Sequence.Map.html" title="Sequence.Map">Up</a>
&nbsp;<a class="post" href="Sequence.Map.Make.html" title="Sequence.Map.Make">Next</a>
</div>
<h1>Functor <a href="type_Sequence.Map.Adapt.html">Sequence.Map.Adapt</a></h1>
<pre><span class="keyword">module</span> Adapt: <div class="sig_block"><code class="code">functor (</code><code class="code">M</code><code class="code"> : </code><code class="type">Map.S</code><code class="code">) -&gt; </code><code class="type"><a href="Sequence.Map.S.html">S</a></code><code class="type"> with type key = M.key and type 'a t = 'a M.t</code></div></pre><div class="info module top">
Adapt a pre-existing Map module to make it sequence-aware<br>
</div>
<table border="0" cellpadding="3" width="100%">
<tr>
<td align="left" valign="top" width="1%%"><b>Parameters: </b></td>
<td>
<table class="paramstable">
<tr>
<td align="center" valign="top" width="15%">
<code>M</code></td>
<td align="center" valign="top">:</td>
<td><code class="type">Map.S</code>
</table>
</td>
</tr>
</table>
<hr width="100%">
<pre><span class="keyword">include</span> Map.S</pre>
<pre><span id="VALto_seq"><span class="keyword">val</span> to_seq</span> : <code class="type">'a <a href="Sequence.html#TYPEt">Sequence.t</a> -> (key * 'a) <a href="Sequence.html#TYPEsequence">Sequence.sequence</a></code></pre>
<pre><span id="VALof_seq"><span class="keyword">val</span> of_seq</span> : <code class="type">(key * 'a) <a href="Sequence.html#TYPEsequence">Sequence.sequence</a> -> 'a <a href="Sequence.html#TYPEt">Sequence.t</a></code></pre>
<pre><span id="VALkeys"><span class="keyword">val</span> keys</span> : <code class="type">'a <a href="Sequence.html#TYPEt">Sequence.t</a> -> key <a href="Sequence.html#TYPEsequence">Sequence.sequence</a></code></pre>
<pre><span id="VALvalues"><span class="keyword">val</span> values</span> : <code class="type">'a <a href="Sequence.html#TYPEt">Sequence.t</a> -> 'a <a href="Sequence.html#TYPEsequence">Sequence.sequence</a></code></pre>
<pre><span id="VALto_list"><span class="keyword">val</span> to_list</span> : <code class="type">'a <a href="Sequence.html#TYPEt">Sequence.t</a> -> (key * 'a) list</code></pre>
<pre><span id="VALof_list"><span class="keyword">val</span> of_list</span> : <code class="type">(key * 'a) list -> 'a <a href="Sequence.html#TYPEt">Sequence.t</a></code></pre></body></html>