|
Scala Library
|
|
scala/collection/generic/Addable.scala]
trait
Addable[A, +This <: Addable[A, This]]
extends AnyRef| Method Summary | |
def
|
+
(elem1 : A, elem2 : A, elems : A*) : This
Adds two or more elements to this collection and returns
a new collection.
|
abstract def
|
+
(elem : A) : This
Creates a new collection with an additional element, unless the element is already present.
|
def
|
++
(elems : Traversable[A]) : This
Adds a number of elements provided by a traversable object
and returns a new collection with the added elements.
|
def
|
++
(iter : Iterator[A]) : This
Adds a number of elements provided by an iterator
and returns a new collection with the added elements.
|
protected abstract def
|
repr : This |
| Methods inherited from AnyRef | |
| getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized |
| Methods inherited from Any | |
| ==, !=, isInstanceOf, asInstanceOf |
| Method Details |
protected abstract
def
repr : This
elem - the element to be addedelem1 - the first element to add.elem2 - the second element to add.elems - the remaining elements to add.
def
++(elems : Traversable[A]) : This
elems - the traversable object.iter - the iterator|
Scala Library
|
|