led even if the
    lists have different length. If you know your equality
    function is costly, you may want to check <a href="List.html#VALcompare_lengths"><code class="code">List.compare_lengths</code></a>
    first.</p>
</div>
<ul class="info-attributes">
<li><b>Since</b> 4.12.0</li>
</ul>
</div>

<pre id="VALcompare">val compare : ('a -&gt; 'a -&gt; int) -&gt; 'a list -&gt; 'a list -&gt; int</pre><div class="info ">
<div class="info-desc">
<p><code class="code">compare&nbsp;cmp&nbsp;[a1;&nbsp;...;&nb