Skip to content

Conversation

@hu13
Copy link

@hu13 hu13 commented Nov 20, 2024

I changed the start index to 0 because I expect the iterator to be able to getCurrent() element if one exists before calling moveNext()?

I also add bound check to getCurrent().

Lastly, getMany() will advance the index beyond the last element if the requested amount is the entire list to mark that there are no items left.

@hu13 hu13 marked this pull request as ready for review November 20, 2024 08:02
@hu13 hu13 changed the base branch from feature/slice-iterable-testing-prototype to main November 20, 2024 08:04
@hu13 hu13 changed the base branch from main to feature/slice-iterable-testing-prototype November 20, 2024 08:06
@hu13
Copy link
Author

hu13 commented Feb 7, 2025

@jagobagascon do you think we can get this merge?
i have been using it in my project. things are working well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant