// Returns an Iterable representing [0, 1, 2]
it.range(3)
// Returns an Iterable representing []
it.range(-10)
// Returns an Iterable representing [3, 4, 5, 6]
it.range(3, 7)
// Returns an Iterable representing [2, 4, 6]
it.range(2, 8, 2)
// Returns an Iterable representing [5, 4, 3, 2, 1, 0, -1]
it.range(5, -2, -1)
Returns an iterable representing a sequence of numbers, from
start
tostop
.This function can be called in three different ways:
stop
variable counts from zero until stop, in increments of 1.start
andstop
counts from start until stop, in increments of 1.start
,stop
, andstep
counts fromstart
untilstop
in increments ofstep
.step
can be positive or negative.