Reset the iterator's position to one past the end of the result set.
Adjust the position relative to the current position.
Adjust the position relative to the current position.
Offset may be negative.
Moving to before the first element will return false but head/next will advance to the first. Moving past the end will result in an empty iterator.
true if the iterator has a row ready after the move. If the move would position the iterator before the first element, head and next will move it to the first.
Move to the specified absolute offset within the result set.
Move to the specified absolute offset within the result set. E.g., moving to 1 makes the iterator's next result be the first element of the result set, 2 makes it return the second element, etc. Negative offsets move relative to the end of the results so for example moveTo(-1) makes head/next return the last element and -2 would make it return the next-to-last elemnt.
Moving to before the first element will return false but head/next will advance to the first. Moving past the end will result in an empty iterator.
true if the iterator has a row ready after the move.
Reset the iterator's position to the beginning of the result set.
(Changed in version 2.8.0) collect
has changed. The previous behavior can be reproduced with toSeq
.