I want to combine (zip) the following streams:
s1 = [1, A], [2, B], [3, C]
s2 = [1, X], [3, XX]
And get:
result = [1, Pair(A, X)], [2, Pair(B, null)], [3, Pair(C, XX)]
Is there a clean and efficient way to do this?
Thanks in advance for any help.