Skip to content

Conversation

@deankarn
Copy link

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
@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.

2 participants