title: Stream of boolean values, is any true?
body: <p>I want to parallelize the following code snipped using a parallelStream:</p>
  
  <pre><code>boolean anyTrue() {
    for (Element e : setOfE) {
      if (eval(e)) {
        return true;
      }
    }
    return false;
  }
  </code></pre>
  
  <p>Will the following work on parallel streams and use regular short-circuit evaluation?</p>
  
  <pre><code>setOfE.parallelStream().map(e -&gt; eval(e)).reduce(false, (a,b) -&gt; a || b))
  </code></pre>