in scala.collection.immutable
trait Set

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

Direct Known Subclasses:
  SortedSet, Set4, Set3, Set2, Set1, ListSet, HashSet, EmptySet

Def Summary
| `def` ** (that: scala.collection.Set[A]) : scala.collection.immutable.Set[A] This method is an alias for `intersect`. It computes an intersection with set `that`. It removes all the elements that are not present in `that`.
| `def` + (elem1: A, elem2: A, elems: A*) : scala.collection.immutable.Set[A] Add two or more elements to this set.
`abstract` | `def` + (elem: A) : scala.collection.immutable.Set[A] Create a new set with an additional element.
| `def` ++ (elems: scala.Iterable[A]) : scala.collection.immutable.Set[A] Add all the elements provided by an iterator of the iterable object `elems` to the set.
| `def` ++ (elems: scala.Iterator[A]) : scala.collection.immutable.Set[A] Add all the elements provided by an iterator to the set.
| `def` - (elem1: A, elem2: A, elems: A*) : scala.collection.immutable.Set[A] Remove two or more elements from this set.
`abstract` | `def` - (elem: A) : scala.collection.immutable.Set[A] Remove a single element from a set.
| `def` -- (elems: scala.Iterable[A]) : scala.collection.immutable.Set[A] Remove all the elements provided by an iterator of the iterable object `elems` from the set.
| `def` -- (elems: scala.Iterator[A]) : scala.collection.immutable.Set[A] Remove all the elements provided by an iterator `elems` from the 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.
`override` | `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` flatMap [B] (f: (A) => scala.Iterable[B]) : scala.collection.immutable.Set[B] Applies the given function `f` to each element of this set, then forms the union of all results.
| `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`.
`override` | `def` map [B] (f: (A) => B) : scala.collection.immutable.Set[B] Returns the set resulting from applying the given function `f` to each element of this set.

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

Def Detail

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

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

Parameters:
  `that -` the set to intersect with

`def` + (elem1: A, elem2: A, elems: A*): scala.collection.immutable.Set[A]

  Add two or more elements to this set.

Parameters:
  `elem1 -` the first element.
Parameters:
  `elem2 -` the second element.
Parameters:
  `elems -` the remaining elements.
Returns:
  a new set with the elements added.

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

  Create a new set with an additional element.

`def` ++ (elems: scala.Iterable[A]): scala.collection.immutable.Set[A]

  Add all the elements provided by an iterator of the iterable object `elems` to the set.

Parameters:
  `elems -` the iterable object containing the elements to be added
Returns:
  a new set with the elements added.

`def` ++ (elems: scala.Iterator[A]): scala.collection.immutable.Set[A]

  Add all the elements provided by an iterator to the set.

Parameters:
  `elems -` the iterator containing the elements to be added
Returns:
  a new set with the elements added.

`def` - (elem1: A, elem2: A, elems: A*): scala.collection.immutable.Set[A]

  Remove two or more elements from this set.

Parameters:
  `elem1 -` the first element.
Parameters:
  `elem2 -` the second element.
Parameters:
  `elems -` the remaining elements.
Returns:
  a new set with the elements removed.

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

  Remove a single element from a set.

Parameters:
  `elem -` the element to be removed
Returns:
  a new set with the element removed.

`def` -- (elems: scala.Iterable[A]): scala.collection.immutable.Set[A]

  Remove all the elements provided by an iterator of the iterable object `elems` from the set.

Parameters:
  `elems -` An iterable object containing the elements to remove from the set.
Returns:
  a new set with the elements removed.

`def` -- (elems: scala.Iterator[A]): scala.collection.immutable.Set[A]

  Remove all the elements provided by an iterator `elems` from the set.

Parameters:
  `elems -` An iterator containing the elements to remove from the set.
Returns:
  a new set with the elements removed.

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

Returns:
  an empty set of arbitrary element type

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

  `excl` removes many elements from the set.

@scala.deprecated
`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.

`override 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 -` The predicate used to filter the set

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

  Applies the given function `f` to each element of this set, then forms the union of all results.

Parameters:
  `f -` function to apply to each element.
Returns:
  a set containing all elements in each `f(a0), ..., f(an)` if this set contains `a0, ..., an`.

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

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

@scala.deprecated
`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 -` the set to intersect with

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

  Returns the set resulting from applying the given function `f` to each element of this set.

Parameters:
  `f -` function to apply to each element.
Returns:
  a set containing `f(a0), ..., f(an)` if this set contains `a0, ..., an`.