trait
Iterator
[
+A
]
extends
CanIterate
A core Iterator class
Constructors
Members
def
++
(
xs:
CanIterate
[
B
]
)
: Iterator
[
B
]
def
drop
(
n:
Int
)
: Iterator
[
A
]
def
flatMap
(
f:
A => CanIterate
[
B
]
)
: Iterator
[
B
]
def
foldLeft
(
z:
B
)
(
op:
(B, A) => B
)
: B
def
foldRight
(
z:
B
)
(
op:
(A, B) => B
)
: B
def
foreach
(
f:
A => Unit
)
: Unit
def
hasNext
: Boolean
def
indexWhere
(
p:
A => Boolean
)
: Int
def
iterator
: Iterator
[
A
]
def
map
(
f:
A => B
)
: Iterator
[
B
]
def
next
: A
def
partition
(
p:
A => Boolean
)
: (
Iterator
[
A
], Iterator
[
A
]
)
def
remaining
: Int
If the number of elements still to be returned by this iterator is known, that number, otherwise -1.
If the number of elements still to be returned by this iterator is known, that number, otherwise -1.
def
reverse
: Iterator
[
A
]
def
underlying
: Iterator
[
Nothing <: Any
]
If this iterator results from applying a transfomation to another iterator, that other iterator, otherwise the iterator itself.
If this iterator results from applying a transfomation to another iterator, that other iterator, otherwise the iterator itself.
def
zip
(
that:
CanIterate
[
B
]
)
: Iterator
[
(
A, B
)
]