module TestProf::ArrayBSearchIndex

Ruby 2.3 bsearch_index method (for usage with older Rubies) Straightforward and non-optimal implementation, just for compatibility

Public Instance Methods

bsearch_index(&block) click to toggle source
# File lib/test_prof/ext/array_bsearch_index.rb, line 9
def bsearch_index(&block)
  el = bsearch(&block)
  index(el)
end