kotlin.collections.removeAll
removeAll
inline fun <T> MutableCollection<out T>.removeAll( elements: Collection<T> ): Boolean
Removes all of this collection's elements that are also contained in the specified collection.
Allows to overcome type-safety restriction of removeAll
that requires to pass a collection of type Collection<E>
.
Return true
if any of the specified elements was removed from the collection, false
if the collection was not modified.
fun <T> MutableIterable<T>.r