Allow iterators to include a rewind/restart/... method such that if you fully consume an iterator, and then call it that method, it will produce the entire sequence start-to-finish again
Of course, not all iterators are reversible that way, so an iterator may fail to do the thing, and that experience needs to be designed for
Allow iterators to include a
rewind/restart/... method such that if you fully consume an iterator, and then call it that method, it will produce the entire sequence start-to-finish againOf course, not all iterators are reversible that way, so an iterator may fail to do the thing, and that experience needs to be designed for