retainAll

fun retainAll(elements: Collection<T>): Boolean

Keeps only elements in the MutableVector and removes all other values.