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

Retain & Filter refactor #46

Merged
merged 3 commits into from
Jan 29, 2024
Merged

Retain & Filter refactor #46

merged 3 commits into from
Jan 29, 2024

Conversation

deankarn
Copy link
Contributor

sliceext.Retain & sliceext.Filter to not shuffle data in the underlying slice array but create new slice referencing the data instead. In practice, it can cause unexpected behaviour and users expectations not met when the same data is also referenced elsewhere. If anyone still requires a shuffle implementation for efficiency I'd be happy to add a separate function for that as well.

@deankarn deankarn merged commit 67dfc10 into master Jan 29, 2024
16 checks passed
@deankarn deankarn deleted the retain-filter-refactor branch January 29, 2024 18:40
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