removingAll

open override fun removingAll(elements: Collection<E>): PersistentSet<E>(source)

Returns a new persistent set containing all elements of this set except the elements contained in the specified elements collection, or this instance if there are no elements to remove.


open override fun removingAll(predicate: (E) -> Boolean): PersistentSet<E>(source)

Returns a new persistent set with elements matching the specified predicate removed, or this instance if no elements match the predicate.