subtract

fun SRange.subtract(removeRanges: Set<SRange>): SRangeSet

For a given range, create new ranges based on removing any portion of the old range which overlaps with any of the ranges in the "removeRanges" set. Return a new set of ranges


fun SRangeSet.subtract(removeRanges: Set<SRange>): SRangeSet

For a set of SRanges, create new ranges based on removing any portion of the old range which overlaps with any of the ranges in the "removeRanges" set.

Returns a set of updated ranges .