Get started

minus

inline operator fun <E> PersistentCollection<E>.minus(element: E): PersistentCollection<E>(source)

Returns a new persistent collection with a single appearance of the specified element removed, or this instance if there is no such element in this collection.


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


operator fun <E> PersistentCollection<E>.minus(elements: Array<out E>): PersistentCollection<E>(source)

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


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


inline operator fun <E> PersistentList<E>.minus(element: E): PersistentList<E>(source)

Returns a new persistent list with the first appearance of the specified element removed, or this instance if there is no such element in this list.


operator fun <E> PersistentList<E>.minus(elements: Iterable<E>): PersistentList<E>(source)

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


operator fun <E> PersistentList<E>.minus(elements: Array<out E>): PersistentList<E>(source)

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


operator fun <E> PersistentList<E>.minus(elements: Sequence<E>): PersistentList<E>(source)

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


inline operator fun <E> PersistentSet<E>.minus(element: E): PersistentSet<E>(source)

Returns a new persistent set with the specified element removed, or this instance if there is no such element in this set.


operator fun <E> PersistentSet<E>.minus(elements: Iterable<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.


operator fun <E> PersistentSet<E>.minus(elements: Array<out E>): PersistentSet<E>(source)

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


operator fun <E> PersistentSet<E>.minus(elements: Sequence<E>): PersistentSet<E>(source)

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


operator fun <K, V> PersistentMap<out K, V>.minus(key: K): PersistentMap<K, V>(source)

Returns a new persistent map with the specified key and its corresponding value removed, or this instance if it contains no mapping for the key.


operator fun <K, V> PersistentMap<out K, V>.minus(keys: Iterable<K>): PersistentMap<K, V>(source)

Returns a new persistent map containing all entries of this map except those whose keys are contained in the specified keys collection, or this instance if there are no entries to remove.


operator fun <K, V> PersistentMap<out K, V>.minus(keys: Array<out K>): PersistentMap<K, V>(source)

Returns a new persistent map containing all entries of this map except those whose keys are contained in the specified keys array, or this instance if there are no entries to remove.


operator fun <K, V> PersistentMap<out K, V>.minus(keys: Sequence<K>): PersistentMap<K, V>(source)

Returns a new persistent map containing all entries of this map except those whose keys are contained in the specified keys sequence, or this instance if there are no entries to remove.