are equal (0 result)
      and <code class="code">l1</code> is smaller than <code class="code">l2</code></li>
<li>the empty list <code class="code">[]</code> is strictly smaller than non-empty lists</li>
</ul>
<p>Note: the <code class="code">cmp</code> function will be called even if the lists have
    different lengths.</p>
</div>
<ul class="info-attributes">
<li><b>Since</b> 4.12.0</li>
</ul>
</div>
<h2 id="1_Iterators">Iterators</h2>
<pre id="VALiter">val iter : ('a -&gt; unit) -&gt; 'a list -&gt; unit</