|
|
Scala 2.4.0-final
|
object
Set
extends java.lang.Object
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.
| Constructor Summary | |
def
this
|
|
| Def Summary | |
def
apply
[A]
(elems: A*)
: scala.collection.immutable.Set[A]
The canonical factory for this type |
|
def
empty
[A]
: scala.collection.immutable.Set[A]
The empty set of this type |
|
| Constructor Detail |
| Def Detail |
def
apply
[A](elems: A*): scala.collection.immutable.Set[A]
def
empty
[A]: scala.collection.immutable.Set[A]