toCollection

fun <T, C : MutableCollection<in T>> Sequence<T>.toCollection(destination: C): C(source)

Appends all elements to the given destination collection.

The operation is terminal.

Since Kotlin

1.0