Liter"><code class="code">List.iter</code></a>, but the function is applied to the index of
   the element as first argument (counting from 0), and the element
   itself as second argument.</p>
</div>
<ul class="info-attributes">
<li><b>Since</b> 4.00.0</li>
</ul>
</div>

<pre id="VALmap">val map : ('a -&gt; 'b) -&gt; 'a list -&gt; 'b list</pre><div class="info ">
<div class="info-desc">
<p><code class="code">map&nbsp;f&nbsp;[a1;&nbsp;...;&nbsp;an]</code> applies function <code class="code">f</code> to <cod