chop
Description:
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.
Note:
In Iterator implementation resulting iterator is Iterator.valid when parent iterator is Iterator.valid and the offset is 0. Using the parent iterator is not allowed before the inner iterator Iterator.next return false and then it points on its last element.
Parameters:
offset |
the offset to first element the iterator is pointing to |
length |
maximum number of elements iterator may return. Negative value means that the number is unbounded |