l</span> init</span> : <code class="type">int -&gt; f:(int -&gt; char) -&gt; string</code></pre><div class="info ">
<div class="info-desc">
<p><code class="code">init&nbsp;n&nbsp;~f</code> is a string of length <code class="code">n</code> with index
    <code class="code">i</code> holding the character <code class="code">f&nbsp;i</code> (called in increasing index order).</p>
</div>
<ul class="info-attributes">
<li><b>Since</b> 4.02.0</li>
<li><b>Raises</b> <code>Invalid_argument</code> if <code class="code