Scala Library
|
|
scala/collection/immutable/Set.scala
]
object
Set
extends
SetFactory[Set]Method Summary | |
implicit def
|
canBuildFrom [A] : CanBuildFrom[Set, A, Set[A]] |
override def
|
empty
[A] : Set[A]
The empty iterable of type
CC . |
Methods inherited from SetFactory | |
newBuilder, setCanBuildFrom |
Methods inherited from GenericCompanion | |
apply |
Methods inherited from AnyRef | |
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized |
Methods inherited from Any | |
==, !=, isInstanceOf, asInstanceOf |
Class Summary | |
class
|
EmptySet
[A] extends Set[A]
An optimized representation for immutable empty sets
|
class
|
Set1
[A](elem1 : A) extends Set[A]
An optimized representation for immutable sets of size 1
|
class
|
Set2
[A](elem1 : A, elem2 : A) extends Set[A]
An optimized representation for immutable sets of size 2
|
class
|
Set3
[A](elem1 : A, elem2 : A, elem3 : A) extends Set[A]
An optimized representation for immutable sets of size 3
|
class
|
Set4
[A](elem1 : A, elem2 : A, elem3 : A, elem4 : A) extends Set[A]
An optimized representation for immutable sets of size 4
|
Method Details |
Scala Library
|
|