strawman
.
collections
.
CollectionStrawMan1
Cons
Related Doc:
package CollectionStrawMan1
case class
Cons
[
+A
]
(
x:
A
,
xs:
List
[
A
]
)
extends
List
[
A
] with
Product
with
Serializable
Linear Supertypes
Serializable
,
Serializable
,
Product
,
Equals
,
List
[
A
],
Seq
[
A
],
Iterable
[
A
],
FromIterator
[
List
],
CanIterate
[
A
],
AnyRef
,
Any
Ordering
Alphabetic
By inheritance
Inherited
Cons
Serializable
Serializable
Product
Equals
List
Seq
Iterable
FromIterator
CanIterate
AnyRef
Any
Hide All
Show all
Learn more about member selection
Visibility
Public
All
Instance Constructors
new
Cons
(
x:
A
,
xs:
List
[
A
]
)
Value Members
final
def
!=
(
arg0:
Any
)
:
Boolean
Definition Classes
AnyRef → Any
final
def
##
()
:
Int
Definition Classes
AnyRef → Any
final
def
==
(
arg0:
Any
)
:
Boolean
Definition Classes
AnyRef → Any
def
apply
(
i:
Int
)
:
A
Definition Classes
List
→
Seq
final
def
asInstanceOf
[
T0
]
:
T0
Definition Classes
Any
def
clone
()
:
AnyRef
Attributes
protected[
java.lang
]
Definition Classes
AnyRef
Annotations
@throws
(
...
)
final
def
eq
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
def
finalize
()
:
Unit
Attributes
protected[
java.lang
]
Definition Classes
AnyRef
Annotations
@throws
(
classOf[java.lang.Throwable]
)
def
fromIterator
[
B
]
(
it:
Iterator
[
B
]
)
:
List
[
B
]
Definition Classes
List
→
FromIterator
final
def
getClass
()
:
Class
[_]
Definition Classes
AnyRef → Any
def
head
:
A
Definition Classes
Cons
→
List
def
isEmpty
:
Boolean
Definition Classes
Cons
→
List
final
def
isInstanceOf
[
T0
]
:
Boolean
Definition Classes
Any
def
iterator
:
ListIterator
[
A
]
Definition Classes
List
→
CanIterate
def
length
:
Int
Definition Classes
List
→
Seq
final
def
ne
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
final
def
notify
()
:
Unit
Definition Classes
AnyRef
final
def
notifyAll
()
:
Unit
Definition Classes
AnyRef
final
def
synchronized
[
T0
]
(
arg0: ⇒
T0
)
:
T0
Definition Classes
AnyRef
def
tail
:
List
[
A
]
Definition Classes
Cons
→
List
final
def
wait
()
:
Unit
Definition Classes
AnyRef
Annotations
@throws
(
...
)
final
def
wait
(
arg0:
Long
,
arg1:
Int
)
:
Unit
Definition Classes
AnyRef
Annotations
@throws
(
...
)
final
def
wait
(
arg0:
Long
)
:
Unit
Definition Classes
AnyRef
Annotations
@throws
(
...
)
val
x
:
A
val
xs
:
List
[
A
]
Inherited from
Serializable
Inherited from
Serializable
Inherited from
Product
Inherited from
Equals
Inherited from
List
[
A
]
Inherited from
Seq
[
A
]
Inherited from
Iterable
[
A
]
Inherited from
FromIterator
[
List
]
Inherited from
CanIterate
[
A
]
Inherited from
AnyRef
Inherited from
Any
Ungrouped