title: 'return' doesn't jump out of forEach in Kotlin
body: <p>I have this Kotlin code, why <strong>return@forEach</strong> doesn't jump out of <strong>forEach</strong>? It continues the loop until it finishes, removing reversed() doesn't solve problem:</p>
  
  <pre><code>rendered_words.reversed().forEach  { rw -&gt;
                      if (rw.y - the_top &gt; 0 &amp;&amp; rw.y - the_top &lt; height) {
                          new_top = rw.y
                          return@forEach
                      }
                  }
                  smoothScrollTo(Math.min(text_y - height, new_top))
  </code></pre>
  
  <p>I tried replacing <strong>return@forEach</strong> with <strong>break@forEach</strong> but Kotlin compiler says : </p>
  
  <blockquote>
    <p>Error:(785, 25) The label '@forEach' does not denote a loop</p>
  </blockquote>