Shrinkable
This trait forms part of collections that can be reduced
using a -=
operator.
- Source:
- Shrinkable.scala
class AbstractBuffer[A]
class ArrayBuffer[A]
class ArrayDeque[A]
class ListBuffer[A]
class UnrolledBuffer[T]
trait IndexedBuffer[A]
class SystemProperties
class LinkedHashSet[A]
class AbstractSet[A]
class BitSet
Value members
Abstract methods
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
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
@deprecated("Use `--=` aka `subtractAll` instead of varargs `-=`; infix operations with an operand of multiple args will be deprecated", "2.13.3")
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