You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think this is not a bug, accordingly to the documentation of sort.Search is using binary search to find a the index i in [0, n) at which f(i) is true, so it doesn't need to evaluate all the values only a subset of them.
What version of Go are you using (
go version
)?go version go1.13 darwin/amd64
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
What did you do?
Playground link: https://play.golang.org/p/f0E0SRNHj-5
and Output is
The output should include
0 {zig 40}
, but not.What did you expect to see?
What did you see instead?
The text was updated successfully, but these errors were encountered: