removeAll

open override fun removeAll(elements: Collection<E>): PersistentList<E>(source)

Returns the result of removing all elements in this list that are also contained in the specified elements collection.

Return

a new persistent list with elements in this list that are also contained in the specified elements collection removed; or this instance if no modifications were made in the result of this operation.