Packages

trait Shrinkable[-A] extends AnyRef

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

Source
Shrinkable.scala
Since

2.8

Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Shrinkable
  2. AnyRef
  3. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def subtractOne(elem: A): Shrinkable.this.type

    Removes a single element from this shrinkable collection.

    Removes a single element from this shrinkable collection.

    elem

    the element to remove.

    returns

    the shrinkable collection itself

Concrete Value Members

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

    Alias for subtractAll

    Alias for subtractAll

    Annotations
    @inline()
  2. 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.

    elem1

    the first element to remove.

    elem2

    the second element to remove.

    elems

    the remaining elements to remove.

    returns

    the shrinkable collection itself

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

    Alias for subtractOne

    Alias for subtractOne

    Annotations
    @inline()
  4. 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.

    xs

    the iterator producing the elements to remove.

    returns

    the shrinkable collection itself