array.c (rb_ary_bsearch): add Array#bsearch for binary search. [ruby-core:36390] [Feature #4766]
test/ruby/test_array.rb: add a test for above.
range.c (range_bsearch): add Range#bsearch for binary search. [ruby-core:36390] [Feature #4766]
test/ruby/test_range.rb: add a test for above
NEWS: added the two new methods.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37655 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
array.c (rb_ary_bsearch): add Array#bsearch for binary search.
[ruby-core:36390] [Feature #4766]
test/ruby/test_array.rb: add a test for above.
range.c (range_bsearch): add Range#bsearch for binary search.
[ruby-core:36390] [Feature #4766]
test/ruby/test_range.rb: add a test for above
NEWS: added the two new methods.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37655 b2dd03c8-39d4-4d8f-98ff-823fe69b080e