Searched defs:comparable (Results 1 – 2 of 2) sorted by relevance
159 func IndexList[T comparable](t T, list []T) int {168 func InList[T comparable](t T, list []T) bool {172 func setFromList[T comparable](l []T) map[T]bool {183 func ListSetDifference[T comparable](l1, l2 []T) (bool, []T, []T) {333 func firstUnique[T comparable](slice []T) []T {342 func firstUniqueInPlace[T comparable](slice []T) []T {373 func firstUniqueMap[T comparable](in []T) []T {
119 func indexBy[K comparable, V any](values []V, keyFn func(v V) K) map[K]V {