title: Iterate two Java-8-Streams together
body: <p>I'd like to iterate two Java-8-Streams together, so that I have in each iteration-step two arguments.
  Something like that, where <code>somefunction</code> produces something like <code>Stream&lt;Pair&lt;A,B&gt;&gt;</code>.</p>
  
  <pre><code>Stream&lt;A&gt; as;
  Stream&lt;B&gt; bs;
  somefunction (as, bs)
    .forEach ((a, b) -&gt; foo (a, b));
  // or something like
  somefunction (as, bs)
    .forEach ((Pair&lt;A, B&gt; abs) -&gt; foo (abs.left (), abs.right ()));
  </code></pre>
  
  <p>I want to know, if Java provides something like that, although there is no <code>Pair</code> in Java :-(
  If there is no API-Function like that, is there another way of iterating two streams simultaniously?</p>