Type of internal level elements iterated over as it may be different from A
.
Type of internal level elements iterated over as it may be different from A
.
Converts the current element of the level-specific iterator
to A
.
Converts the current element of the level-specific iterator
to A
.
To avoid an infinite loop on initialization time, lazy
should be
used when overriding.
To avoid an infinite loop on initialization time, lazy
should be
used when overriding.
Internal level-specific iterator.
Internal level-specific iterator. When referencing iterators take care to
override with val
.
To avoid an infinite loop on initialization time, lazy
should be
used when overriding.
To avoid an infinite loop on initialization time, lazy
should be
used when overriding.
Current element of iterator
converted to A
.
Current element of iterator
converted to A
. This variable will be set
by the predefined level-specific implementations of hasNext
so the
user just needs to formally initialize it to any value.
(Changed in version 2.8.0) collect
has changed. The previous behavior can be reproduced with toSeq
.
The value returned by the last call of next
.
The value returned by the last call of next
.
Cached implementation of hasNext
which is also responsible for
a) skipping in the outer iterator bound to this mid-level iterator if
this
iterator has been exhausted and
b) initializing the inner iterator bound to this mid-level iterator.
Cached implementation of hasNext
which is also responsible for
a) skipping in the outer iterator bound to this mid-level iterator if
this
iterator has been exhausted and
b) initializing the inner iterator bound to this mid-level iterator.
The next element of this
iterator also cashed in current
.
The next element of this
iterator also cashed in current
.
Optional cashed hasNext result to avoid repeated calculations.
Optional cashed hasNext result to avoid repeated calculations.
(midIterator: MonadOps[A]).filter(p)
(midIterator: MonadOps[A]).flatMap(f)
(midIterator: MonadOps[A]).map(f)
(midIterator: MonadOps[A]).withFilter(p)
Iterator for mid level groups. For instance, if we iterate over cities grouped by countries 'and' continents, the implementation of this trait will correspond to the country iterator.