Project

General

Profile

Actions

Feature #3479

closed

Array#binary_find et al

Added by rogerdpack (Roger Pack) over 14 years ago. Updated about 12 years ago.

Status:
Closed
Target version:
-

Description

=begin
It would be quite handy to have a method for searching through an Array, when sorted, using binary search.
Apparently doing this in C would be ideal [1].
So this is a feature request for the same
Array#binary_index
Array#binary_find (or binary_search, whichever the commiter prefers).

Thanks much.
-r
[1] http://github.com/tyler/binary_search
=end


Related issues 1 (0 open1 closed)

Is duplicate of Ruby master - Feature #4766: Range#bsearchClosedmame (Yusuke Endoh)05/23/2011Actions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0