Hmm, a batched generator with C++20 coroutines?
A generator that collects n yielded items before actually suspending the generator and conversely swiftly iterates over the items with "normal" array iterators before continuing the generator execution...