addSeveral
Adds provided number of elements at the end of the ordered collection. i
th new element is a result of builder(i)
. The builder is consecutively called on indices from 0
to number exclusive.
For each index from 0
to size there is exactly one corresponding place for a value. And this operation:
adds places with indices from size to
size + number
exclusive,and puts result of
builder(i)
in a place with indexsize + i
for eachi
from0
to number exclusive.
All builder invocations are computed consecutively on values from 0
to number exclusive in their order starting with 0
.