initial commit

This commit is contained in:
Timon Ringwald
2022-08-18 13:41:16 +02:00
commit f7ab541d0a
4 changed files with 66 additions and 0 deletions

7
comparator.go Normal file
View File

@ -0,0 +1,7 @@
package slices
type EqualityComparator[T comparable] func(a, b T) bool
func DefaultEqualityComparator[T comparable](a, b T) bool {
return a == b
}