static Seq<Short> range(short fromInclusive, short toExclusive, int step) {
        return toExclusive <= fromInclusive ? empty() : iterate(fromInclusive, t -> Short.valueOf((short) (t + step))).limitWhile(t -> t < toExclusive);
    }
The range between two values.

@param fromInclusive The lower bound
@param toExclusive The upper bound
@param step The increase between two values
jOOL-java-8/src/main/java/org/jooq/lambda/Seq.java