Issue #3479 has been updated by Shyouhei Urabe. The point is, Ruby's arrays are not always sorted. You can't easily say if an array is sorted or not unless you actually scan the whole array, which is O(n) -- slower than binary search. And if you apply bsearch to non-sorted arrays it should of course fail. As a standard API's behaviour "input is always sorted" kind of assumption is hard to accept I think. ---------------------------------------- http://redmine.ruby-lang.org/issues/show/3479 ---------------------------------------- http://redmine.ruby-lang.org