slices/comparator.go

8 lines
150 B
Go
Raw Normal View History

2022-08-18 13:41:16 +02:00
package slices
type EqualityComparator[T comparable] func(a, b T) bool
func DefaultEqualityComparator[T comparable](a, b T) bool {
return a == b
}