Create a new range from 2 values.
Time complexity: O(1)
Space complexity: O(1)
The lower bound of this range
The upper bound of this range
An iterable that contains this.lower
and this.upper
.
Time complexity: O(1)
Space complexity: O(1)
Returns true
if value
is within this.lower
and this.upper
, false otherwise.
The >=
and <=
operators are used to compare value
.
Time complexity: O(1)
Space complexity: O(1)
Static
fromCreate a new range from the first 2 values of an iterable.
Time complexity: O(1)
Space complexity: O(1)
The iterable to create a range from
A new range
A range between 2 values.