case class
::
[
+A
]
extends
List
Constructors
::
(
x:
A
,
next:
List
[
A
]
)
Members
var
next
: List
[
A
]
val
x
: A
def
_1
: T1
def
_2
: T2
def
copy
(
x:
A
,
next:
List
[
A
]
)
: ::
[
A
]
def
copy$default$1
: A
def
copy$default$2
: List
[
A
]
override
def
head
: A
The first element of the collection.
The first element of the collection.
override
def
isEmpty
: Boolean
To be overridden in implementations:
To be overridden in implementations:
override
def
tail
: Repr
The rest of the collection without its first element.
The rest of the collection without its first element.