We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff8eff4 commit 257d35dCopy full SHA for 257d35d
fn/func.go
@@ -142,9 +142,9 @@ func Any[T any](xs []T, pred func(T) bool) bool {
142
return false
143
}
144
145
-// None returns true if the passed predicate returns false for all items in the
146
-// slice.
147
-func None[T any](xs []T, pred func(T) bool) bool {
+// NotAny returns true if the passed predicate returns false for all items in
+// the slice.
+func NotAny[T any](xs []T, pred func(T) bool) bool {
148
return !Any(xs, pred)
149
150
0 commit comments