 class="info-attributes">
<li><b>Since</b> 4.13.0</li>
</ul>
</div>

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