removeAll

fun removeAll(elements: Collection<*>): Boolean

Removes from this list all of its elements that are contained in the specified collection.

Return

true if this list changed as a result of the call.

See also

Parameters

elements

Collection containing elements to be removed from this list.

Throws

If the class of an element of this list is incompatible with the specified collection.

If this list contains a null element and the specified collection does not permit null elements.