# addAll

open fun <T, C : Collection<in T>?> addAll(t1: C, t2: Iterable<out T>): C(source)

Utility for adding an iterable to a collection.

#### Return

t1

#### Parameters

t1

The collection to add to

t2

The iterable to add each item of to the collection

<T>

The element type of t1

open fun <T, C : Collection<in T>?> addAll(t1: C, t2: Array<T>): C(source)

Utility for adding an array to a collection.

#### Return

t1

#### Parameters

t1

The collection to add to

t2

The iterable to add each item of to the collection

<T>

The element type of t1