interleaveByKey

Interleaves key-value pairs from this sequence with those from another sequence while maintaining sort order.

This operation combines elements from both sequences, preserving their relative ordering based on keys. When the same key exists in both sequences, both values are included in the result.

Return

A new sorted sequence containing all elements from both sequences

Parameters

other

The sequence to interleave with this sequence


Interleaves elements from this sequence with those from another sequence while maintaining sort order.

This operation combines elements from both sequences, preserving their relative ordering based on keys. When the same key exists in both sequences, both values are included in the result.

Return

A new sorted sequence containing all elements from both sequences

Parameters

other

The sequence to interleave with this sequence