We should add WTF iterator adaptor to implement the zippering pattern common in other languages and coming one day to c++ via ranges' zip_view and friends (https://en.cppreference.com/w/cpp/ranges/zip_view). It will be a while until we can use ranges, but we don't need to wait for some of the simpler bits.
<rdar://problem/105041744>
Pull request: https://github.com/WebKit/WebKit/pull/29328
I think we can close this in favor of std::ranges. @Sam - any thoughts?