est list.</p>
</div>
<ul class="info-attributes">
<li><b>Since</b> 4.05.0</li>
</ul>
</div>

<pre id="VALcompare_length_with">val compare_length_with : 'a list -&gt; int -&gt; int</pre><div class="info ">
<div class="info-desc">
<p>Compare the length of a list to an integer. <code class="code">compare_length_with&nbsp;l&nbsp;len</code> is
   equivalent to <code class="code">compare&nbsp;(length&nbsp;l)&nbsp;len</code>, except that the computation stops
   after at most <code class="code">len</code> iteratio