Skip to content

Commit

Permalink
Update slice.go
Browse files Browse the repository at this point in the history
Co-authored-by: ccoVeille <[email protected]>
  • Loading branch information
SicParv1sMagna and ccoVeille authored Sep 22, 2024
1 parent daa7ac6 commit f2cd79f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion slice.go
Original file line number Diff line number Diff line change
Expand Up @@ -716,7 +716,8 @@ func Pull[T comparable, Slice ~[]T](collection Slice, elements ...T) Slice {
}

// PullAll is like [Pull] except that it accepts an array of values to remove
func PullAll[T comparable, Slice ~[]T](collection Slice, elements []T) Slice {
func PullAll[T comparable, Slice ~[]T](collection Slice,
...elements T) Slice {
output := make(Slice, 0, len(collection))

for _, item := range collection {
Expand Down

0 comments on commit f2cd79f

Please sign in to comment.