toCollection

Appends all elements to the given destination collection.

The operation is terminal.

Since Kotlin

1.0