Skip to content

IntervalUnion

Computes the union of intervals.

$ wo 'IntervalUnion[Interval[{1, 4}], Interval[{3, 7}]]'
Interval[{1, 7}]

The union of nothing, and of empty intervals, is the empty interval:

$ wo 'IntervalUnion[]'
Interval[]

An empty interval contributes nothing to a union:

$ wo 'IntervalUnion[Interval[{1, 2}], Interval[]]'
Interval[{1, 2}]