|
Scala 2
|
||
class
Set
[ A ]
extends
java.lang.Object with
Set with
ScalaObjectscala.collection.Set as well as for + and
-.| Def Summary | |
def
+
( elem : A )
: Set
This method creates a new set with an additional element. |
|
def
-
( elem : A )
: Set
- can be used to remove a single element from
a set.
|
|
def
empty
: Set
|
|
def
excl
( elems : scala.<repeated> )
: Set
excl removes many elements from the set.
|
|
def
excl
( that : Iterable )
: Set
This method removes all the elements provided by an iterator of the iterable object that from the set.
|
|
def
filter
( p : Function1 )
: Set
Method filter removes all elements from the set for
which the predicate p yields the value false.
|
|
override
|
def
hashCode
: scala.Int
hashcode for this set |
def
incl
( elems : scala.<repeated> )
: Set
incl can be used to add many elements to the set
at the same time.
|
|
def
incl
( that : Iterable )
: Set
This method will add all the elements provided by an iterator of the iterable object that to the set.
|
|
def
intersect
( that : Set )
: Set
This method computes an intersection with set that.
It removes all the elements that are not present in that.
|
|
| Def Detail |
def
+
( elem : A ) : Set
def
-
( elem : A ) : Set
- can be used to remove a single element from
a set.def
empty
: Set
def
excl
( elems : scala.<repeated> ) : Set
excl removes many elements from the set.def
excl
( that : Iterable ) : Set
that from the set.def
filter
( p : Function1 ) : Set
filter removes all elements from the set for
which the predicate p yields the value false.def
hashCode
: scala.Int
def
incl
( elems : scala.<repeated> ) : Set
incl can be used to add many elements to the set
at the same time.def
incl
( that : Iterable ) : Set
that to the set.def
intersect
( that : Set ) : Set
that.
It removes all the elements that are not present in that.