static <T> Seq<T> seq(T[] values, int startIndex, int endIndex) {
        return seq(Arrays.asList(values).subList(startIndex, endIndex));
    }
Wrap an array slice into a <code>Seq</code>.

@throws IndexOutOfBoundsException if
        (<code>startIndex &lt; 0 || endIndex &gt; size ||
        startIndex &gt; endIndex</code>)
jOOL-java-8/src/main/java/org/jooq/lambda/Seq.java