/li>
</ul>
<p>The output elements are included in <code class="code">l1</code> and <code class="code">l2</code> in the same
    relative order as the corresponding input elements in <code class="code">l</code>.</p>

<p>In particular, <code class="code">partition_map&nbsp;(fun&nbsp;x&nbsp;-&gt;&nbsp;if&nbsp;f&nbsp;x&nbsp;then&nbsp;Left&nbsp;x&nbsp;else&nbsp;Right&nbsp;x)&nbsp;l</code>
    is equivalent to <code class="code">partition&nbsp;f&nbsp;l</code>.</p>
</div>
<ul class="info-attributes">
<li><b>Since<