Any particular reason for not having `Arrays.binar...
# stdlib
g
Any particular reason for not having
Arrays.binarySearch() /  IntArray.binarySearch()
that accepts comparator argument? The way it works now, it's possible to perform a
binarySearch
in an ascending
IntArray
but not in a descending. At the same time, no problems with
Array<Int>
.
k
In general they don't seem to really want perfectly matching interfaces: https://youtrack.jetbrains.com/issue/KT-21987
Although here you could argue about boxing of course.
will see, thanks!