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

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