Scala Library
|
|
scala/collection/jcl/SeqIterator.scala
]
trait
SeqIterator[K, A]
extends
MutableIterator[A]Method Summary | |
abstract def
|
hasPrevious : Boolean |
def
|
indexOf
(a : A) : Option[K]
finds the index of the next "a" in this iteration.
|
override def
|
map
[B](f : (A) => B) : SeqIterator[K, B]
Returns a new iterator that maps all elements of this iterator
to new elements using function
f . |
abstract def
|
nextIndex : K |
abstract def
|
previous : A |
abstract def
|
previousIndex : K |
def
|
seek
(idx : K) : A
Winds the iteration forward until index "idx" is found
|
Methods inherited from MutableIterator | |
remove (abstract), has, remove, retain |
Methods inherited from Iterator | |
hasNext (abstract), next (abstract), take, drop, slice, append, ++, flatMap, filter, takeWhile, dropWhile, zip, zipWithIndex, foreach, forall, exists, contains, find, findIndexOf, indexOf, foldLeft, foldRight, /:, :\, reduceLeft, reduceRight, buffered, counted, duplicate, copyToArray, readInto, readInto, readInto, copyToBuffer, toList, collect, mkString, mkString, mkString, addString, toString |
Methods inherited from AnyRef | |
getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized |
Methods inherited from Any | |
==, !=, isInstanceOf, asInstanceOf |
Class Summary | |
class
|
Map
[B](f : (A) => B) extends Map[B] with SeqIterator[K, B]
Standard implementation of a mapped iterator.
|
Method Details |
abstract
def
nextIndex : K
abstract
def
previousIndex : K
abstract
def
previous : A
abstract
def
hasPrevious : Boolean
a -
..None
if "a" is not found in the iteration.override
def
map[B](f : (A) => B) : SeqIterator[K, B]
f
.
Scala Library
|
|