Zipping iterators: check if both are spent in the end

Hi,

Is there a way to check if both zipped iterators got spent simultaneously? A panic will do.

itertools has zip_eq (free function).

Thanks! This is exactly what I want. By any chance, is there a way to supply my own panic message here?

Not natively, but it's a pretty small and straight-forward implementation if you wanted to just patch and embed it (licensing allowing).

1 Like

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.