Project

General

Profile

« Previous | Next » 

Revision 37655

  • 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.