default <U> Seq<Window<T>> window(Function<? super T, ? extends U> partitionBy, Comparator<? super T> orderBy) {
        return window(Window.of(partitionBy, orderBy)).map(t -> t.v1);
    }
Map this stream to a windowed stream using a specific partition and order.
<p>
<pre><code>
// (1, 2, 4, 4, 3)
Seq.of(1, 2, 4, 2, 3).window(i -> i % 2, naturalOrder()).map(Window::max)
</code></pre>
jOOL-java-8/src/main/java/org/jooq/lambda/Seq.java