setAll

fun <E> MutableCollection<E>.setAll(collection: Collection<E>)(source)

Removes all elements from this collection and adds all elements from collection.