static <T1, T2, T3, T4> Seq<Tuple4<T1, T2, T3, T4>> crossApply(Stream<? extends T1> stream, Function<? super T1, ? extends Stream<? extends T2>> function2, Function<? super T2, ? extends Stream<? extends T3>> function3, Function<? super T3, ? extends Stream<? extends T4>> function4) {
        return crossApply(seq(stream), t -> seq(function2.apply(t)), t -> seq(function3.apply(t)), t -> seq(function4.apply(t)));
    }
Cross apply 4 functions to a stream.
<p>
<pre><code>
// (tuple(1, 0), tuple(2, 0), tuple(2, 1))
Seq.of(1, 2).crossApply(t -> Seq.range(0, t))
</code></pre>
jOOL-java-8/src/main/java/org/jooq/lambda/Seq.java