github.com/m4gshm/gollections@v0.0.13-0.20240331203319-a34a86e58a24/break/predicate/eq/api.go (about)

     1  // Package eq provides predicate builder short aliases
     2  package eq
     3  
     4  import "github.com/m4gshm/gollections/break/predicate"
     5  
     6  // To - eq.To creates a predicate to test for equality to the 'v'
     7  func To[T comparable](v T) predicate.Predicate[T] {
     8  	return predicate.Eq(v)
     9  }