Skip to content

Commit 257d35d

Browse files
Roasbeefguggero
authored andcommitted
fn: rename None to NotAny
Otherwise it conflicts with the new Option[T] type
1 parent ff8eff4 commit 257d35d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

fn/func.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,9 @@ func Any[T any](xs []T, pred func(T) bool) bool {
142142
return false
143143
}
144144

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 {
145+
// NotAny returns true if the passed predicate returns false for all items in
146+
// the slice.
147+
func NotAny[T any](xs []T, pred func(T) bool) bool {
148148
return !Any(xs, pred)
149149
}
150150

0 commit comments

Comments
 (0)