Shrinkable

trait Shrinkable[-A]

This trait forms part of collections that can be reduced using a -= operator.

class Object
trait Matchable
class Any
trait Buffer[A]
class ArrayBuffer[A]
class ArrayDeque[A]
class Queue[A]
class Stack[A]
class ListBuffer[A]
trait IndexedBuffer[A]
trait Map[K, V]
trait Map[K, V]
class TrieMap[K, V]
class AbstractMap[K, V]
class AnyRefMap[K, V]
class HashMap[K, V]
class LinkedHashMap[K, V]
class ListMap[K, V]
class LongMap[V]
class WithDefault[K, V]
class WithDefault[K, V]
class OpenHashMap[Key, Value]
class TreeMap[K, V]
trait MultiMap[K, V]
trait SeqMap[K, V]
trait SortedMap[K, V]
trait MapOps[K, V, CC, C]
trait SortedMapOps[K, V, CC, C]
trait SetOps[A, CC, C]
class HashSet[A]
class LinkedHashSet[A]
trait Set[A]
class AbstractSet[A]
class BitSet
class TreeSet[A]
trait SortedSet[A]
trait SortedSetOps[A, CC, C]

Value members

Abstract methods

def subtractOne(elem: A): Shrinkable[A]

Removes a single element from this shrinkable collection.

Value Params
elem

the element to remove.

Returns

the shrinkable collection itself

Source
Shrinkable.scala

Concrete methods

final def --=(xs: IterableOnce[A]): Shrinkable[A]

Alias for subtractAll

final def -=(elem: A): Shrinkable[A]

Alias for subtractOne

Removes all elements produced by an iterator from this shrinkable collection.

Value Params
xs

the iterator producing the elements to remove.

Returns

the shrinkable collection itself

Source
Shrinkable.scala

Deprecated methods

@deprecated("Use `--=` aka `subtractAll` instead of varargs `-=`; infix operations with an operand of multiple args will be deprecated", "2.13.3")
def -=(elem1: A, elem2: A, elems: A*): Shrinkable[A]

Removes two or more elements from this shrinkable collection.

Value Params
elem1

the first element to remove.

elem2

the second element to remove.

elems

the remaining elements to remove.

Returns

the shrinkable collection itself

Deprecated
Source
Shrinkable.scala