in scala.collection.mutable
class Set

mixin abstract `class` Set [ A ]
  `extends` java.lang.Object
  `with` scala.collection.Set[A]
  `with` scala.collection.mutable.Scriptable[scala.collection.mutable.Message[A]]
  `with` scala.ScalaObject

  This class represents mutable sets. Concrete set implementations just have to provide functionality for the abstract methods in `scala.collection.Set` as well as for `add`, `remove`, and `clear`.

author:
  Matthias Zenger
version:
  1.1, 09/05/2004

Def Summary
| `def` ++= ( it : scala.Iterator[A] ) : scala.Unit This method will add all the elements provided by an iterator of the iterable object `that` to the set.
| `def` ++= ( that : scala.Iterable[A] ) : scala.Unit This method will add all the elements provided by an iterator of the iterable object `that` to the set.
| `def` += ( elem : A ) : scala.Unit This method adds a new element to the set.
| `def` --= ( it : scala.Iterator[A] ) : scala.Unit This method removes all the elements provided by an iterator `it` from the set.
| `def` --= ( that : scala.Iterable[A] ) : scala.Unit This method removes all the elements provided by the the iterable object `that` from the set.
| `def` -= ( elem : A ) : scala.Unit `-=` can be used to remove a single element from a set.
| `def` << ( cmd : scala.collection.mutable.Message[A] ) : scala.Unit Send a message to this scriptable object.
| `def` clear : scala.Unit Removes all elements from the set. After this operation is completed, the set will be empty.
`override` | `def` clone : scala.collection.mutable.Set[A] Return a clone of this set.
| `def` excl ( elems : A* ) : scala.Unit `excl` removes many elements from the set.
| `def` filter ( p : (A) => scala.Boolean ) : scala.Unit Method `filter` removes all elements from the set for which the predicate `p` yields the value `false`.
`override` | `def` hashCode : scala.Int The hashCode method always yields an error, since it is not safe to use mutable stacks as keys in hash tables.
| `def` incl ( elems : A* ) : scala.Unit `incl` can be used to add many elements to the set at the same time.
| `def` intersect ( that : scala.collection.mutable.Set[A] ) : scala.Unit This method computes an intersection with set `that`. It removes all the elements that are not present in `that`.
| `def` update ( elem : A , included : scala.Boolean ) : scala.Unit This method allows one to add or remove an element `elem` from this set depending on the value of parameter `included`. Typically, one would use the following syntax:
    set(elem) = true

Def Detail

`def` ++= ( it : scala.Iterator[A] ) : scala.Unit

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

`def` ++= ( that : scala.Iterable[A] ) : scala.Unit

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

`def` += ( elem : A ) : scala.Unit

  This method adds a new element to the set.

`def` --= ( it : scala.Iterator[A] ) : scala.Unit

  This method removes all the elements provided by an iterator `it` from the set.

`def` --= ( that : scala.Iterable[A] ) : scala.Unit

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

`def` -= ( elem : A ) : scala.Unit

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

`def` << ( cmd : scala.collection.mutable.Message[A] ) : scala.Unit

  Send a message to this scriptable object.

param:
  cmd the message to send.

`def` clear : scala.Unit

  Removes all elements from the set. After this operation is completed, the set will be empty.

override `def` clone : scala.collection.mutable.Set[A]

  Return a clone of this set.

return:
  a set with the same elements.

`def` excl ( elems : A* ) : scala.Unit

  `excl` removes many elements from the set.

`def` filter ( p : (A) => scala.Boolean ) : scala.Unit

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

override `def` hashCode : scala.Int

  The hashCode method always yields an error, since it is not safe to use mutable stacks as keys in hash tables.

return:
  never.

`def` incl ( elems : A* ) : scala.Unit

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

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

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

`def` update ( elem : A , included : scala.Boolean ) : scala.Unit

  This method allows one to add or remove an element `elem` from this set depending on the value of parameter `included`. Typically, one would use the following syntax:

      set(elem) = true