mirror of
https://github.com/tendermint/tendermint.git
synced 2026-02-11 14:21:18 +00:00
12 lines
186 B
Go
12 lines
186 B
Go
package kv
|
|
|
|
// IntInSlice returns true if a is found in the list.
|
|
func intInSlice(a int, list []int) bool {
|
|
for _, b := range list {
|
|
if b == a {
|
|
return true
|
|
}
|
|
}
|
|
return false
|
|
}
|