range
make a list of consecutive integer numbers
(long start, long end) -> list
Returns a list with consecutive long values starting at start
, and ending at end
.
Returns an empty list if start > end
.
Returns nil
if start
is nil
or end
is nil
.
Parameters
Name | Type | Description |
---|---|---|
start |
long | The first number in the list |
end |
long | The last number in the list |