github.com/m4gshm/gollections@v0.0.13-0.20240331203319-a34a86e58a24/break/predicate/exclude/api.go (about) 1 // Package exclude provides predicate builders 2 package exclude 3 4 import ( 5 "github.com/m4gshm/gollections/break/predicate" 6 "github.com/m4gshm/gollections/break/predicate/one" 7 ) 8 9 // All - exclude.All creates a predicate that tests if a value is not in the excluded values 10 func All[T comparable](excluded ...T) predicate.Predicate[T] { 11 return predicate.Not(one.Of(excluded...)) 12 }