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.
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.