// Remove removes all values equal to elem from slice. // // The closest equivalent in the standard slices package is: // // DeleteFunc(func(x T) bool { return x == elem }) func Remove[T comparable](slice []T, elem T) []T { … }
// Remove removes all values equal to elem from slice. // // The closest equivalent in the standard slices package is: // // DeleteFunc(func(x T) bool { return x == elem }) func Remove[T comparable](slice []T, elem T) []T { … }