addAll

inline fun <T> MutableCollection<T>.addAll(elementsToAdd: Iterable<T>): Boolean(source)

Adds all elements in this to collection.

Return

true if collection was modified as a result of this operation.

See also


inline fun <T> MutableCollection<T>.addAll(iterator: Iterator<T>): Boolean(source)

Adds all elements in iterator to this. The iterator will be left exhausted: its hasNext method will return false.

Return

true if collection was modified as a result of this operation

See also