You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Itertools::tail: skip the starting part of the iterator
If the iterator is exact sized, then `.collect()` finishes the work.
More generally, if the size hint knows enough and `nth` is efficient, this might skip most of the iterator efficiently.
In the tests, `.filter(..)` is there to ensure that `tail` can't leverage a precise `size_hint` to entirely skip the iteration after initial `.collect()`.
Co-Authored-By: scottmcm <[email protected]>
0 commit comments