From f2cd79f6e7c75d803c59eab8ac9256dd35b713d5 Mon Sep 17 00:00:00 2001 From: tayushiev <92353726+SicParv1sMagna@users.noreply.github.com> Date: Sun, 22 Sep 2024 21:13:28 +0300 Subject: [PATCH] Update slice.go Co-authored-by: ccoVeille <3875889+ccoVeille@users.noreply.github.com> --- slice.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/slice.go b/slice.go index eab20a21..a0b34ecd 100644 --- a/slice.go +++ b/slice.go @@ -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 {