Prelude API
    Preparing search index...

    Function overBoth

    • Generator function that yields ranges from both range sets in sorted order by start position.

      This function merges two arrays of ranges, yielding them in order of their start positions. When ranges have the same start position, both are yielded (first from xs, then from ys). This is useful for algorithms that need to process ranges from multiple sets in order.

      Type Parameters

      • K

        The type of range boundaries

      • V

        The type of range values

      Parameters

      • xs: Pick<RangeSet<K, V>, "ranges">

        Object containing the first array of ranges

      • ys: Pick<RangeSet<K, V>, "ranges">

        Object containing the second array of ranges

      • key: Pick<Key.Key<K>, "cmp">

        Key operations used to order range starts

      Returns Generator<Range.Range<K, V>>

      Ranges from both arrays in sorted order by start position