case class
Take
[
A
]
extends
View
A view that takes leading elements of the underlying collection.
Constructors
Take
(
underlying:
Iterable
[
A
]
,
n:
Int
)
Members
val
n
: Int
protected
val
normN
: Int
val
underlying
: Iterable
[
A
]
def
_1
: T1
def
_2
: T2
def
copy
(
underlying:
Iterable
[
A
]
,
n:
Int
)
: Take
[
A
]
def
copy$default$1
: Iterable
[
A
]
def
copy$default$2
: Int
def
iterator
: Iterator
[
A
]
override
def
knownSize
: Int
The number of elements in this collection, if it can be cheaply computed, -1 otherwise. Cheaply usually means: Not requiring a collection traversal.
The number of elements in this collection, if it can be cheaply computed, -1 otherwise. Cheaply usually means: Not requiring a collection traversal.