gitlab.com/evatix-go/core@v1.3.55/coreindexes/Of.go (about) 1 package coreindexes 2 3 func Of(indexes []int, currentIndex int) int { 4 for i, indexValue := range indexes { 5 if indexValue == currentIndex { 6 return i 7 } 8 } 9 10 return -1 11 }