Prelude API
    Preparing search index...

    Function intersection

    • Computes the intersection of two range sets, finding overlapping portions.

      Only the overlapping portions of ranges from both sets are included in the result. When ranges overlap, their values are merged according to the value merge function. Non-overlapping portions are excluded 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

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

        The second range set containing ranges to intersect with the first

      Returns RangeSet<K, V>

      A new range set containing only the overlapping portions of both input range sets