Prelude API
    Preparing search index...

    Function difference

    • Computes the difference of two range sets, removing overlapping portions.

      Returns a new range set containing only the portions of the first range set that do not overlap with any ranges in the second range set. Overlapping portions are removed from the result.

      Type Parameters

      • K

        The type of range boundaries

      • V

        The type of range values

      Parameters

      • rangeSet: RangeSet<K, V>

        The first range set containing

      • otherRangeSet: { ranges: Range.Range<K, V>[] }

        The second range set containing ranges to subtract from the first

      Returns RangeSet<K, V>

      A new range set with overlapping portions removed