minus

operator fun minus(other: Interval): List<Interval>

Removes all points in the argument interval from this interval. This is essentially the opposite of union.

If the two intervals intersect, the result will be this interval with the intersection removed. If the removal splits this interval into two pieces, they are returned as separate elements of a list.

Return

a list of intervals containing all points in this interval which are not contained in the argument.