A better version of Iterator.copyToArray
,
that returns the number of actually read elements.
A better version of Iterator.copyToArray
,
that returns the number of actually read elements.
the type of the elements of the array.
the array to fill.
the starting index.
the maximal number of elements to copy.
Reuse: $consumesIterator