addAll

fun addAll(elements: Iterable<T>)

Appends every element of elements in iteration order through add.

When elements yields more items than capacity, only the last capacity of them remain.