Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: iterators #1798

Draft
wants to merge 3 commits into
base: orderedmap
Choose a base branch
from
Draft

feat: iterators #1798

wants to merge 3 commits into from

Conversation

pd93
Copy link
Member

@pd93 pd93 commented Sep 9, 2024

This is a follow-up to #1797 which adds support for iterators in our codebase. This tidies up a lot of code (We have a lot of Range functions) and makes control-flow a bit easier in loops.

I have also slightly refactored the sort package to be slightly more generic and use a function type rather than an interface. The interface was not necessary and increased the code complexity.

This is a Go 1.23 feature which requires a bump to our minimum Go version hence the draft PR (Obviously the tests will fail as Go 1.24 does not currently exist).

@pd93 pd93 changed the base branch from main to orderedmap September 9, 2024 19:31
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