Shrinkable

trait Shrinkable[-A]

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

Source:
Shrinkable.scala
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.this.type

Removes a single element from this shrinkable collection.

Removes a single element from this shrinkable collection.

Value parameters:
elem

the element to remove.

Returns:

the shrinkable collection itself

Source:
Shrinkable.scala

Concrete methods

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

Alias for subtractAll

Alias for subtractAll

Source:
Shrinkable.scala
final def -=(elem: A): Shrinkable.this.type

Alias for subtractOne

Alias for subtractOne

Source:
Shrinkable.scala
def subtractAll(xs: IterableOnce[A]): Shrinkable.this.type

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

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

Value parameters:
xs

the iterator producing the elements to remove.

Returns:

the shrinkable collection itself

Source:
Shrinkable.scala

Deprecated methods

def -=(elem1: A, elem2: A, elems: A*): Shrinkable.this.type

Removes two or more elements from this shrinkable collection.

Removes two or more elements from this shrinkable collection.

Value parameters:
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