// IndexOf returns the position of the first occurrence of the specified value.
// Returns -1 if not found.
IndexOf returns the position of the first occurrence of the specified value.
Returns -1 if not found.
// IndexOf returns the position of the first occurrence of the specified value . // Returns - 1 if not found .
func IndexOf(s []uint32, x uint32) int {
	for i, e := range s {
		if e == x {
			return i
		}
	}
	return -1
}
func IndexOf ( s [ ] uint32 , x uint32 ) int { for i , e := range s { if e == x { return i } } return - 1 }
IndexOf returns the position of the first occurrence of the specified value.
IndexOf returns the position of the first occurrence of the specified value .