RangeEdit on GitHub
Utilities for working with ranges. A range represents an interval, or a set of values with a beginning and an end.
Type declarations included in the Range module.
Ranges can be inclusive or exclusive. When
Inclusive, the end value will be included in operations. When
Exclusive, the end value will be excluded from operations.
Checks if the given number is within the range.
Calls the given function with each number in the range. For increasing ranges, the value is increased by
1 in each iteration, and for decreasing ranges, the value is decreased by
1. The value is always changed by
1, even if non-integer values were provided in the range.