34 lines
1.7 KiB
HTML
34 lines
1.7 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<link rel="stylesheet" href="style.css" type="text/css">
|
|
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<link rel="Start" href="index.html">
|
|
<link rel="Up" href="index.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="Length" rel="Chapter" href="Length.html"><title>Length</title>
|
|
</head>
|
|
<body>
|
|
<div class="navbar"> <a class="up" href="index.html" title="Index">Up</a>
|
|
</div>
|
|
<h1>Module <a href="type_Length.html">Length</a></h1>
|
|
|
|
<pre><span id="MODULELength"><span class="keyword">module</span> Length</span>: <code class="code">sig</code> <a href="Length.html">..</a> <code class="code">end</code></pre><div class="info module top">
|
|
<div class="info-desc">
|
|
<p>returns the number of elements in the list <code class="code">l</code> - non tail recursive</p>
|
|
</div>
|
|
</div>
|
|
<hr width="100%">
|
|
|
|
<pre><span id="VALlength"><span class="keyword">val</span> length</span> : <code class="type">'a list -> int</code></pre>
|
|
<pre><span id="VALtest_length"><span class="keyword">val</span> test_length</span> : <code class="type">unit -> unit</code></pre>
|
|
<pre><span id="VALlength_tr"><span class="keyword">val</span> length_tr</span> : <code class="type">'a list -> int</code></pre><div class="info ">
|
|
<div class="info-desc">
|
|
<p>returns the number of elements in the list <code class="code">l</code> - tail recursive</p>
|
|
</div>
|
|
</div>
|
|
|
|
<pre><span id="VALtest_length_tr"><span class="keyword">val</span> test_length_tr</span> : <code class="type">unit -> unit</code></pre></body></html>
|