Open kpreid opened 2 months ago
There is also the question of whether FlatZipMap
should exist at all. The test of usefulness for what FlatZipMap
was supposed to be is: can one write a nontrivial, non-derived implementation of Exhaust
using an iterator that's primarily a composition of one or more FlatZipMap
s?
The things that this can hopefully do that delegating to a derived implementation can't are:
size_hint()
, without needing to write a bunch of delegating methods.
I wrote
exhaust::iteration::FlatZipMap
as a helper to make it easier to implement certain patterns of iteration. I suspect that theMap
part is obsolete now that factories exist, but I have not confirmed this.