Skip to content

Commit

Permalink
Update snippet.txt
Browse files Browse the repository at this point in the history
renamed function for new version
  • Loading branch information
bobahop authored Sep 8, 2023
1 parent 6ff5ecb commit f865f42
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
func KeepSlice[T Slicer](input []T, filter func(T) bool) []T {
func Keep[T Slicer](input []T, filter func(T) bool) []T {
if input == nil {
return input
}
Expand Down

0 comments on commit f865f42

Please sign in to comment.