Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
After filtering without allocating, it's recommended to loop over the underlying slice `a` and setting all unneeded values to `nil` manually if they're to be gc'ed. Instead, one might simply use the builtin `clear` on the sub-slice starting at the end of `b`.
- Loading branch information