Integer.up_to
up_toninclude_endstep
Group: Input
Aliases: range
Documentation
Creates an increasing range of integers from self to n.
Arguments
n: The end of the range.include_end: Specifies if the right end of the range should be included. By default, the range is right-exclusive.step: The step between each element in the range. By default, the step is 1.
Examples
Create a range containing the numbers 0, 1, 2, 3, 4.
0.up_to 5
Create a range containing elements 1, 2, 3.
1.up_to 3 include_end=True