Advances this iterator past the first n elements, or the length of the iterator, whichever is smaller.
Advances this iterator past the first n elements, or the length of the iterator, whichever is smaller.
the number of elements to drop
an iterator which produces all values of the current iterator, except
it omits the first n values.
Returns the index of the first occurrence of the specified object in this iterable object.
Returns the index of the first occurrence of the specified object in this iterable object.
element to search for.
the index of the first occurrence of elem in the values produced by this iterator,
or -1 if such an element does not exist until the end of the iterator is reached.
Returns the index of the first produced value satisfying a predicate, or -1.
Returns the index of the first produced value satisfying a predicate, or -1.
the predicate to test values
the index of the first produced value satisfying p,
or -1 if such an element does not exist until the end of the iterator is reached.
Tests whether this iterator is empty.
Tests whether this iterator is empty.
true if hasNext is false, false otherwise.
Partitions this iterator in two iterators according to a predicate.
Partitions this iterator in two iterators according to a predicate.
the predicate on which to partition
a pair of iterators: the iterator that satisfies the predicate
p and the iterator that does not.
The relative order of the elements in the resulting iterators
is the same as in the original iterator.
Splits this Iterator into a prefix/suffix pair according to a predicate.
Splits this Iterator into a prefix/suffix pair according to a predicate.
the test predicate
a pair of Iterators consisting of the longest prefix of this
whose elements all satisfy p, and the rest of the Iterator.
Selects first n values of this iterator.
Selects first n values of this iterator.
the number of values to take
an iterator producing only of the first n values of this iterator, or else the
whole iterator, if it produces fewer than n values.
Takes longest prefix of values produced by this iterator that satisfy a predicate.
Takes longest prefix of values produced by this iterator that satisfy a predicate.
The predicate used to test elements.
An iterator returning the values produced by this iterator, until
this iterator produces a value that does not satisfy
the predicate p.
Iterator for LArray. It is a extension of
scala.collection.Iterableand most of the code is derived from its implementation except that the index type is Long instead of Int.