Go Generic
This declaration means that s is a slice of any type T that fulfills the built-in constraint comparable. x is also a value of the same type.
func Index[T comparable](s []T, x T) int
This declaration means that s is a slice of any type T that fulfills the built-in constraint comparable. x is also a value of the same type.
func Index[T comparable](s []T, x T) int