It's a common interface for Iterator and
Iterable. It provides a fast, high level functions.
Iterator implementation: Please note that most of the functions affect the state
of the iterator by moving it forward. Even if the iterator is BidirIterator it
must not rewind the state.
Iterable implementation: validy (
Iterator.valid) of returned iterator is the same as for invalid iterator.
In other words the following code is semantically equivalent:
var x = iterable.function (args); var x = iterable.iterator ().function(args);
Returns whether any element matches the given predicate.
publicvirtualIterator<G> chop (int offset, int length = -1)
Creates a new iterator which contains elements from iterable. The
first argument states the offset i.e. number of elements the iterator skips by default.
Creates a new iterator that is initially pointing to seed. Then
subsequent values are obtained after applying the function to previous value and the subsequent items.