@SuppressWarnings("unchecked")
    static <T> Seq<T> skipUntil(Stream<? extends T> stream, Predicate<? super T> predicate) {
        // [0]: true = we've skipped values until the predicate yielded true
        // [1]: true = there is at least one value that was considered for skipping
        boolean[] test = { false, false };

        return SeqUtils.transform(stream, (delegate, action) -> {
            if (test[0]) {
                return delegate.tryAdvance(action);
            }
            else {
                do {
                    test[1] = delegate.tryAdvance(t -> {
                        if (test[0] = predicate.test(t))
                            action.accept(t);
                    });
                }
                while (test[1] && !test[0]);
                return test[0];
            }
        });
    }
Returns a stream with all elements skipped for which a predicate evaluates to <code>false</code>.
<p>
<pre><code>
// (3, 4, 5)
Seq.of(1, 2, 3, 4, 5).skipUntil(i -> i == 3)
</code></pre>
jOOL-java-8/src/main/java/org/jooq/lambda/Seq.java