class
LazyList
[
+A
]
extends
LinearSeq
with
SeqLike
Constructors
LazyList
(
expr: =>
Option
[
(
A, LazyList
[
A
]
)
]
)
Members
private
var
evaluated
: Boolean
private
val
expr
: Option
[
(
A, LazyList
[
A
]
)
]
private
var
result
: Option
[
(
A, LazyList
[
A
]
)
]
def
#::
(
elem: =>
B
)
: LazyList
[
B
]
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
force
: Option
[
(
A, LazyList
[
A
]
)
]
def
fromIterable
(
c:
Iterable
[
B
]
)
: LazyList
[
B
]
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.
override
def
toString
: String