diff --git a/084-sort.go b/084-sort.go index 5d2dab0..ea61796 100644 --- a/084-sort.go +++ b/084-sort.go @@ -14,10 +14,6 @@ func main() { s := sort.IntsAreSorted(ints) // Check if a slice is in sorted order. fmt.Println(s) - - 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)) } /* @@ -27,3 +23,6 @@ $ go run sort.go true 1 */ + +// == todo +// general and convenience searching