Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use builtin clear to clear underlying slice after filtering
Instead of looping over the underlying slice `a` and setting all unneeded values to `nil` manually, one might simply use the builtin `clear` on the sub-slice starting at the end of `b`.
- Loading branch information