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

add interface describing iteration #228

Merged
merged 3 commits into from
Sep 10, 2021
Merged

Conversation

willscott
Copy link
Member

No description provided.

Copy link
Contributor

@mvdan mvdan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I might have gone with a func(...) bool callback, returning false to stop iteration, but I assume this is just the interface over the existing implementation.

I think we should also assert that existing implementations implement it:

var _ IterableIndex = (*sortedIndex)(nil)

@willscott willscott merged commit 1220a0c into master Sep 10, 2021
@aschmahmann aschmahmann mentioned this pull request Dec 1, 2021
80 tasks
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.

3 participants