replaceWith

fun <C> MutableList<C>.replaceWith(collection: Collection<C>)

Clears the current list and adds the new items into the collection replacing all items