in scala.collection.immutable
trait Set

`abstract trait` Set [A]
  `extends` java.lang.Object
  `with` scala.collection.Set[A]
  `with` scala.ScalaObject

  This class represents immutable sets. Concrete set implementations just have to provide functionality for the abstract methods in `scala.collection.Set` as well as for `+` and `-`. Note that abstract immutable.Set's are not covariant in their type parameter. This is because some subclasses cannot support the `+` method for arbitrary types.

Author:
  Matthias Zenger
Version:
  1.1, 03/05/2004

Direct Known Subclasses:
  TreeSet, ListSet

Def Summary
`abstract` | `def` + (elem: A) : scala.collection.immutable.Set[A] This method creates a new set with an additional element.
`abstract` | `def` - (elem: A) : scala.collection.immutable.Set[A] `-` can be used to remove a single element from a set.
`abstract` | `def` empty [B] : scala.collection.immutable.Set[B]
| `def` excl (elems: A*) : scala.collection.immutable.Set[A] `excl` removes many elements from the set.
| `def` excl (that: scala.Iterable[A]) : scala.collection.immutable.Set[A] This method removes all the elements provided by an iterator of the iterable object `that` from the set.
| `def` filter (p: (A) => scala.Boolean) : scala.collection.immutable.Set[A] Method `filter` removes all elements from the set for which the predicate `p` yields the value `false`.
`override` | `def` hashCode : scala.Int hashcode for this set
| `def` incl (elems: A*) : scala.collection.immutable.Set[A] `incl` can be used to add many elements to the set at the same time.
| `def` incl (that: scala.Iterable[A]) : scala.collection.immutable.Set[A] This method will add all the elements provided by an iterator of the iterable object `that` to the set.
| `def` intersect (that: scala.collection.Set[A]) : scala.collection.immutable.Set[A] This method computes an intersection with set `that`. It removes all the elements that are not present in `that`.
| `def` map [B] (f: (A) => B) : scala.collection.immutable.Set[B]

Def inherited from scala.collection.Set[A]
apply , contains, equals, isEmpty, size, subsetOf, toString

Def Detail

`abstract def` + (elem: A): scala.collection.immutable.Set[A]

  This method creates a new set with an additional element.

`abstract def` - (elem: A): scala.collection.immutable.Set[A]

  `-` can be used to remove a single element from a set.

`abstract def` empty [B]: scala.collection.immutable.Set[B]

Returns:
  an empty set of arbitrary type

`def` excl (elems: A*): scala.collection.immutable.Set[A]

  `excl` removes many elements from the set.

`def` excl (that: scala.Iterable[A]): scala.collection.immutable.Set[A]

  This method removes all the elements provided by an iterator of the iterable object `that` from the set.

`def` filter (p: (A) => scala.Boolean): scala.collection.immutable.Set[A]

  Method `filter` removes all elements from the set for which the predicate `p` yields the value `false`.

Parameters:
  `p -` ...

`override def` hashCode : scala.Int

  hashcode for this set

`def` incl (elems: A*): scala.collection.immutable.Set[A]

  `incl` can be used to add many elements to the set at the same time.

`def` incl (that: scala.Iterable[A]): scala.collection.immutable.Set[A]

  This method will add all the elements provided by an iterator of the iterable object `that` to the set.

Parameters:
  `that -` ...

`def` intersect (that: scala.collection.Set[A]): scala.collection.immutable.Set[A]

  This method computes an intersection with set `that`. It removes all the elements that are not present in `that`.

Parameters:
  `that -` ...

`def` map [B](f: (A) => B): scala.collection.immutable.Set[B]