Return the ith value of the interval.
Return the ith value of the interval.
the index to get
the ith value of the interval
Tests whether a point border an interval.
Tests whether a point border an interval.
the point to check
true if this interval borders the point
Tests whether two intervals border but do not overlap.
Tests whether two intervals border but do not overlap.
the interval to check
true if this interval borders the other interval
Tests whether this list contains a given value as an element.
Tests whether this list contains a given value as an element.
the value to check
true if this interval contains x
Tests whether another interval is disjoint from this interval.
Tests whether another interval is disjoint from this interval.
This is the opposite of intersects.
the interval to check
true if this is disjoint from that
Measure the distance between two intervals.
Measure the distance between two intervals. Bordering intervals have distance 1 and intersecting intervals have distance 0. The distance is always a positive number.
the interval to measure against
the distance between two intervals.
Takes the intersection of two intervals, or Interval.
Takes the intersection of two intervals, or Interval.empty if they do not intersect.
Tests whether another interval intersects this interval.
Tests whether another interval intersects this interval.
the interval to check
true if this intersects that
The length of the interval.
The length of the interval.
The maximum index in the interval.
The maximum index in the interval.
The minimum index in the interval.
The minimum index in the interval.
(Changed in version 2.9.0) The behavior of scanRight has changed. The previous behavior can be reproduced with scanRight.reverse.
Tests whether this interval is a subsert of another interval.
Tests whether this interval is a subsert of another interval.
the interval to check
true if this is a subset of that
Tests whether this interval is a superset of another interval.
Tests whether this interval is a superset of another interval.
the interval to check
true if this is a superset of that
(Changed in version 2.9.0) transpose throws an IllegalArgumentException if collections are not uniformly sized.
Takes the union of two intervals.
Takes the union of two intervals. The two intervals must border or intersect each other.
(Since version 2.8.0) use iterator' instead
(Since version 2.8.0) use corresponds instead
(Since version 2.8.0) Use indexWhere(p) instead.
(Since version 2.8.0) use lastIndexWhere instead
(Since version 2.8.0) use head' instead
(Since version 2.8.0) use headOption' instead
(Since version 2.8.0) use view' instead
(Since version 2.8.0) use reverseIterator' instead
The empty interval.