title: Zipping streams using JDK8 with lambda (java.util.stream.Streams.zip)
body: <p>In JDK 8 with lambda b93 there was a class <a href="http://download.java.net/lambda/b93/docs/api/java/util/stream/Streams.html" rel="noreferrer">java.util.stream.Streams.zip in b93</a> which could be used to zip streams (this is illustrated in the tutorial <a href="http://blog.dhananjaynene.com/2013/02/exploring-java8-lambdas-part-1/" rel="noreferrer">Exploring Java8 Lambdas. Part 1 by Dhananjay Nene</a>). This function :</p>
  <blockquote>
  <p>Creates a lazy and sequential combined Stream whose elements are the
  result of combining the elements of two streams.</p>
  </blockquote>
  <p>However in b98 this has disappeared. Infact the <code>Streams</code> class is not even accessible in <a href="http://download.java.net/lambda/b98/docs/api/java/util/stream/package-summary.html" rel="noreferrer">java.util.stream in b98</a>.</p>
  <p><strong>Has this functionality been moved, and if so how do I zip streams concisely using b98?</strong></p>
  <p>The application I have in mind is <a href="https://github.com/hraberg/Shen.java/commit/e260f6a6c4f4012642b44c9a93c4a761cef18aa0#diff-0" rel="noreferrer">in this java implementation of Shen</a>, where I replaced the zip functionality in the</p>
  <ul>
  <li><code>static &lt;T&gt; boolean every(Collection&lt;T&gt; c1, Collection&lt;T&gt; c2, BiPredicate&lt;T, T&gt; pred)</code></li>
  <li><code>static &lt;T&gt; T find(Collection&lt;T&gt; c1, Collection&lt;T&gt; c2, BiPredicate&lt;T, T&gt; pred)</code></li>
  </ul>
  <p>functions with rather verbose code (which doesn't use functionality from b98).</p>