ttributes">
<li><b>Since</b> 4.05.0</li>
</ul>
</div>
<h2 id="traversing">Traversing</h2>
<pre><span id="VALiter"><span class="keyword">val</span> iter</span> : <code class="type">f:(char -&gt; unit) -&gt; string -&gt; unit</code></pre><div class="info ">
<div class="info-desc">
<p><code class="code">iter&nbsp;~f&nbsp;s</code> applies function <code class="code">f</code> in turn to all the characters of <code class="code">s</code>.
    It is equivalent to <code class="code">f&nbsp;s.[0];&nbsp;f&nbsp;s.[1];&