This commit is contained in:
Mark McGranaghan 2012-09-21 09:05:40 -07:00
parent 5520ee6b0b
commit 681f5df6c4

View File

@ -17,6 +17,7 @@ func main() {
i := sort.SearchInts(ints, 4) // Binary-search a sorted slice for a value.
fmt.Println(i) // Returns the index if found, or `-1` if not.
fmt.Println(sort.SearchInts(ints, 5))
}
/*