scala / 3.1 / scala / collection / mutable / shrinkable.html

Trait scala.collection.mutable.Shrinkable

trait Shrinkable[-A]

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

Supertypes
Known subtypes
38 types

Abstract methods

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

Removes a single element from this shrinkable collection.

Value parameters
elem

the element to remove.

Returns

the shrinkable collection itself

Concrete methods

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

Alias for subtractAll

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

Alias for subtractOne

Source

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

© 2002-2022 EPFL, with contributions from Lightbend.
Licensed under the Apache License, Version 2.0.
https://scala-lang.org/api/3.1.1/scala/collection/mutable/Shrinkable.html