setAll

fun <T> MutableList<T>.setAll(other: Collection<T>)

Replaces all of the elements of this MutableList with the elements of the provided collection.


fun <K, V> MutableMap<K, V>.setAll(other: Map<K, V>)

Replaces all of the elements of this MutableMap with the elements of the provided map.


fun <T> MutableList<T>.setAll(other: Array<out T>)

Replaces all of the elements of this MutableList with the elements of the provided array.