FindIndexOf¶
func FindIndexOf[T comparable](slice []T, value T) int
FindIndexOf takes a slice of type T and a value of type T. If any element in the slice equals the given value, its index
is returned. If no element is found, -1 is returned.
Deprecated: prefer slices.Index(slice, value) from the standard library.