e class="code">a1,&nbsp;...,&nbsp;an</code>,
   and builds the list <code class="code">[f&nbsp;a1;&nbsp;...;&nbsp;f&nbsp;an]</code>
   with the results returned by <code class="code">f</code>. Not tail-recursive.</p>
</div>
</div>

<pre id="VALmapi">val mapi : (int -&gt; 'a -&gt; 'b) -&gt; 'a list -&gt; 'b list</pre><div class="info ">
<div class="info-desc">
<p>Same as <a href="List.html#VALmap"><code class="code">List.map</code></a>, but the function is applied to the index of
   the element as first argu