You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Intervals in a union can be iterated over in order and don't intersect (are disjoint), and will always have _some_ values lying in between them (are non-adjacent).
53
+
E.g., `[4, 5]` and `[6, 7]` are adjacent intervals in case they use integer types.
54
+
Two non-intersecting intervals with a shared endpoint are also adjacent, regardless of type, if one of the intervals includes the endpoint.
55
+
E.g., `[4.0, 5.0)` and `[5.0, 7.0]` are adjacent.
56
+
Instead, these are represented as a single interval: `[4, 7]` and `[4.0, 7.0]` respectively.
57
+
58
+
## Operations
59
+
60
+
Intervals and interval unions are immutable.
61
+
Operations don't modify the instance the operation is executed on.
62
+
Instead, new instances are returned if the operation results in a different set of values.
63
+
64
+
The following operations are available for any `IntervalUnion<T, TSize>`:
0 commit comments