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