last = [next(iterator) for iterator in iterators]
for i in indices:
    if last[i] < last[i + 1]:
        last[i] = next(iterators[i])
if last[i] > last[i + 1]:
    last[i + 1] = next(iterators[i + 1])
Joining a set of ordered-integer yielding Python iterators