Closed
Description
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 ofiter
.
to something like
An iterator that only iterates over the first
n
iterations ofiter
. Ifiter
yields less elements thann
, only the amount of elements produced byiter
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)^^