The documentation of std::iter::Take gives no information about what happens if the underlying iterator yields less elements than Take should take.
Does it return less than n elements, does it panic, ...
Maybe we should change
An iterator that only iterates over the first n iterations of iter.
to something like
An iterator that only iterates over the first n iterations of iter. If iter yields less elements than n, only the amount of elements produced by iter will be returned.
However english is not my mother tongue and I'm pretty sure there is a much better formulation than this (even to my ears this sounds clumsy)^^
The documentation of
std::iter::Takegives no information about what happens if the underlying iterator yields less elements thanTakeshould take.Does it return less than
nelements, does it panic, ...Maybe we should change
to something like
However english is not my mother tongue and I'm pretty sure there is a much better formulation than this (even to my ears this sounds clumsy)^^