title: Break or return from Java 8 stream forEach?
body: <p>When using <strong>external iteration</strong> over an <code>Iterable</code> we use <code>break</code> or <code>return</code> from enhanced for-each loop as:</p>
  
  <pre><code>for (SomeObject obj : someObjects) {
     if (some_condition_met) {
        break; // or return obj
     }
  }
  </code></pre>
  
  <p>How can we <code>break</code> or <code>return</code> using the <strong>internal iteration</strong> in a Java 8 lambda expression like:</p>
  
  <pre><code>someObjects.forEach(obj -&gt; {
     //what to do here?
  })
  </code></pre>