slices/comparator.go
2022-08-18 13:41:16 +02:00

8 lines
150 B
Go

package slices
type EqualityComparator[T comparable] func(a, b T) bool
func DefaultEqualityComparator[T comparable](a, b T) bool {
return a == b
}