Scala Library
|
|
scala/collection/IndexedSeqLike.scala
]
protected
class
Elements(start : Int, end : Int)
extends
BufferedIterator[A]Method Summary | |
override def
|
drop
(n : Int) : Iterator[A]
drop is overridden to enable fast searching in the middle of random access sequences
|
def
|
hasNext
: Boolean
Does this iterator provide another element?
|
def
|
head
: A
Returns next element of iterator without advancing beyond it.
|
def
|
next
: A
Returns the next element of this iterator.
|
override def
|
take
(n : Int) : Iterator[A]
take is overridden to be symmetric to drop
|
Methods inherited from BufferedIterator | |
buffered |
Methods inherited from Iterator | |
slice, map, ++, flatMap, filter, filterNot, partialMap, takeWhile, partition, dropWhile, zip, padTo, zipWithIndex, zipAll, foreach, forall, exists, contains, find, indexWhere, indexOf, foldLeft, foldRight, /:, :\, reduceLeft, reduceRight, reduceLeftOption, reduceRightOption, grouped, sliding, length, duplicate, patch, copyToArray, copyToArray, copyToArray, copyToBuffer, toList, toStream, toSeq, mkString, mkString, mkString, addString, addString, addString, toString, append, findIndexOf, collect, counted, readInto, readInto, readInto |
Methods inherited from AnyRef | |
getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized |
Methods inherited from Any | |
==, !=, isInstanceOf, asInstanceOf |
Method Details |
def
hasNext : Boolean
def
next : A
def
head : A
Scala Library
|
|