ach_">func forEach(<wbr>_:)</a>
        
<div class="comment collapse" id="comment-func-foreach_"><div class="p">
    <p>Call <code>body</code> on each element in <code>self</code> in the same order as a
<em>for-in loop.</em></p>

<pre><code class="language-swift">sequence.forEach {
  // body code
}</code></pre>

<p>is similar to:</p>

<pre><code class="language-swift">for element in sequence {
  // body code
}</code></pre>

<p><strong>Note:</strong> You cannot use the <code>break</code> or <code>continue</