scala.collection.IndexedSeqLike

class Elements

[source: scala/collection/IndexedSeqLike.scala]

@serializable

@SerialVersionUID(1756321872811029277L)

protected class Elements(start : Int, end : Int)
extends BufferedIterator[A]
The iterator returned by the iterator method
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
Does this iterator provide another element?

def next : A
Returns the next element of this iterator.

def head : A
Returns next element of iterator without advancing beyond it.
Overrides
BufferedIterator.head

override def drop(n : Int) : Iterator[A]
drop is overridden to enable fast searching in the middle of random access sequences

override def take(n : Int) : Iterator[A]
take is overridden to be symmetric to drop