sealed
trait
List
[
+A
]
extends
LinearSeq
with
SeqLike
with
Buildable
Concrete collection type: List
Constructors
Members
override
def
++
(
xs:
IterableOnce
[
B
]
)
: List
[
B
]
When concatenating with another list xs
, avoid copying xs
When concatenating with another list xs
, avoid copying xs
def
++:
(
prefix:
List
[
B
]
)
: List
[
B
]
Prepend operation that avoids copying this list
Prepend operation that avoids copying this list
def
::
(
elem:
B
)
: List
[
B
]
Prepend element
Prepend element
override
def
className
: String
The class name of this collection. To be used for converting to string. Collections generally print like this:
<className>(elem_1, ..., elem_n)
The class name of this collection. To be used for converting to string. Collections generally print like this:
<className>(elem_1, ..., elem_n)
def
fromIterable
(
c:
Iterable
[
B
]
)
: List
[
B
]
protected
def
newBuilder
: Builder
[
A, Repr
]
Creates a new builder.
Creates a new builder.