toCollection

fun <C : MutableCollection<in Vector2I>> toCollection(destination: C): C

Appends all elements to the given destination collection.