github.com/lazyledger/lazyledger-core@v0.35.0-dev.0.20210613111200-4c651f053571/state/txindex/kv/utils.go (about)

     1  package kv
     2  
     3  // IntInSlice returns true if a is found in the list.
     4  func intInSlice(a int, list []int) bool {
     5  	for _, b := range list {
     6  		if b == a {
     7  			return true
     8  		}
     9  	}
    10  	return false
    11  }