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
Note that all cases consume the iterator (even when n=0).
It could alternatively return a vector and not `VecIntoIter` but most of our methods do this (and immediately collect to a vector won't reallocate).
I don't think we should write a non-lazy `head` method (`.take(n)` is a lazy one) but it would be easy.
0 commit comments