func AppendIfNotPresent[T comparable]()

in internal/slices/slices.go [18:23]


func AppendIfNotPresent[T comparable](s []T, t T) []T {
	if !Contains(s, t) {
		return append(s, t)
	}
	return s
}