The empty union could be represented by a vector of Intervals
of length == 0 (i.e. a union of no intervals) instead of a vector of length
== 1 with a single empty set (i.e. a union of a single empty set). This could simplify the code a bit, because there will be no need to keep always an empty Interval in the stored vector.
The empty union could be represented by a vector of Intervals of length == 0 (i.e. a union of no intervals) instead of a vector of length == 1 with a single empty set (i.e. a union of a single empty set). This could simplify the code a bit, because there will be no need to keep always an empty
Interval
in the stored vector.Originally posted by @abraunst in https://github.com/AnderGray/IntervalUnionArithmetic.jl/issues/18#issuecomment-1028175731