scala.collection.generic

trait Subtractable

[source: scala/collection/generic/Subtractable.scala]

trait Subtractable[A, +This <: Subtractable[A, This]]
extends AnyRef
This class represents collections that can be reduced using a - operator.
Author
Martin Odersky
Owner
Martin Odersky
Version
2.8
Since
2.8
Direct Known Subclasses:
MapLike, SetLike, BufferLike

Method Summary
abstract def - (elem : A) : This
Returns a new collection that contains all elements of the current collection except a given element.
def - (elem1 : A, elem2 : A, elems : A*) : This
Returns a new collection that contains all elements of the current collection except a two or more given elements.
def -- (iter : Iterator[A]) : This
Returns a new collection that contains all elements of the current collection except the elements provided by an iterator
def -- (elems : Traversable[A]) : This
Returns a new collection that contains all elements of the current collection except the elements provided by a traversable object
protected abstract def repr : This
Methods inherited from AnyRef
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Method Details
protected abstract def repr : This

abstract def -(elem : A) : This
Returns a new collection that contains all elements of the current collection except a given element.
Parameters
elem - the element to remove.

def -(elem1 : A, elem2 : A, elems : A*) : This
Returns a new collection that contains all elements of the current collection except a two or more given elements.
Parameters
elem1 - the first element to remove.
elem2 - the second element to remove.
elems - the remaining elements to remove.

def --(elems : Traversable[A]) : This
Returns a new collection that contains all elements of the current collection except the elements provided by a traversable object
Parameters
elems - the traversable object containing the elements that do not form part of the new collection.

def --(iter : Iterator[A]) : This
Returns a new collection that contains all elements of the current collection except the elements provided by an iterator
Parameters
elems - the iterator containing the elements that do not form part of the new collection
Notes
same as --