div>

<pre><span id="VALfold_left"><span class="keyword">val</span> fold_left</span> : <code class="type">f:('a -&gt; char -&gt; 'a) -&gt; init:'a -&gt; string -&gt; 'a</code></pre><div class="info ">
<div class="info-desc">
<p><code class="code">fold_left&nbsp;f&nbsp;x&nbsp;s</code> computes <code class="code">f&nbsp;(...&nbsp;(f&nbsp;(f&nbsp;x&nbsp;s.[0])&nbsp;s.[1])&nbsp;...)&nbsp;s.[n-1]</code>,
    where <code class="code">n</code> is the length of the string <code class="code">s</code>.</p>
</div>
<ul