static <T> Tuple2<Seq<T>, Seq<T>> splitAt(Stream<? extends T> stream, long position) {
        SeqBuffer<T> buffer = SeqBuffer.of(stream);
        return tuple(buffer.seq().limit(position), buffer.seq().skip(position));
    }
Split a stream at a given position.
<p>
<pre><code>
// tuple((1, 2, 3), (4, 5, 6))
Seq.of(1, 2, 3, 4, 5, 6).splitAt(3)
</code></pre>
jOOL-java-8/src/main/java/org/jooq/lambda/Seq.java