operator | method
Range
operator |(
- Range otherRange
inherited
Stretches and merges two ranges including all possible non covered spaces between them
Implementation
Range operator |(Range otherRange) {
return Range(
min(start, otherRange.start),
max(end, otherRange.end),
);
}