|
|
Scala 2.3.3
|
abstract
trait
Set
[A]
extends java.lang.Object
with scala.collection.Set[A]
with scala.ScalaObject
| 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]
intersect.
It computes an intersection with set that.
It removes all the elements that are not present in that.that - the set to intersect with
def
+
(elem1: A, elem2: A, elems: A*): scala.collection.immutable.Set[A]
elem1 - the first element.
elem2 - the second element.
elems - the remaining elements.
abstract
def
+
(elem: A): scala.collection.immutable.Set[A]
def
++
(elems: scala.Iterable[A]): scala.collection.immutable.Set[A]
elems to the set.elems - the iterable object containing the elements to be added
def
++
(elems: scala.Iterator[A]): scala.collection.immutable.Set[A]
elems - the iterator containing the elements to be added
def
-
(elem1: A, elem2: A, elems: A*): scala.collection.immutable.Set[A]
elem1 - the first element.
elem2 - the second element.
elems - the remaining elements.
abstract
def
-
(elem: A): scala.collection.immutable.Set[A]
elem - the element to be removed
def
--
(elems: scala.Iterable[A]): scala.collection.immutable.Set[A]
elems from the set.elems - An iterable object containing the elements to remove from the set.
def
--
(elems: scala.Iterator[A]): scala.collection.immutable.Set[A]
elems from the set.elems - An iterator containing the elements to remove 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]
that from the set.
override
def
filter
(p: (A) => scala.Boolean): scala.collection.immutable.Set[A]
filter removes all elements from the set for
which the predicate p yields the value false.p - The predicate used to filter the set
override
def
flatMap
[B](f: (A) => scala.Iterable[B]): scala.collection.immutable.Set[B]
f to each element of
this set, then forms the union of all results.f - function to apply to each element.
f(a0), ..., f(an) if this set contains a0, ..., an.
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]
that to the set.that - ...
def
intersect
(that: scala.collection.Set[A]): scala.collection.immutable.Set[A]
that.
It removes all the elements that are not present in that.that - the set to intersect with
override
def
map
[B](f: (A) => B): scala.collection.immutable.Set[B]
f to each
element of this set.f - function to apply to each element.
f(a0), ..., f(an) if this set contains a0, ..., an.