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
Copy file name to clipboardExpand all lines: README.md
+1-2
Original file line number
Diff line number
Diff line change
@@ -32,7 +32,6 @@ Returns an index of some item in the array `== y`.
32
32
33
33
The following comments apply to the above methods:
34
34
35
-
*`array` can be either an array or an [`ndarray`](https://github.com/mikolalysenko/ndarray)
36
35
*`cmp` is a comparison function, just like what you would pass to `Array.sort()`
37
36
*`y` will always be the second argument passed to `cmp`, so you can ignore it if you are just binary searching on a predicate.
38
37
* Assumes the array is sorted as would be the case if you called `Array.sort(cmp)` on it
@@ -46,4 +45,4 @@ The following comments apply to the above methods:
46
45
*`bounds.eq` will return the first found item with the given index. It can be a little faster than the other methods if you just want to find some random match and do not care where it is.
0 commit comments