8 lines
150 B
Go
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
|
||
|
}
|