[DOC] Tweaks to Array#bsearch_index
This commit is contained in:
parent
f5579c9278
commit
53e3795379
Notes:
git
2024-08-21 16:07:47 +00:00
10
array.c
10
array.c
@ -3564,11 +3564,13 @@ rb_ary_bsearch(VALUE ary)
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* call-seq:
|
* call-seq:
|
||||||
* array.bsearch_index {|element| ... } -> integer or nil
|
* bsearch_index {|element| ... } -> integer or nil
|
||||||
* array.bsearch_index -> new_enumerator
|
* bsearch_index -> new_enumerator
|
||||||
*
|
*
|
||||||
* Searches +self+ as described at method #bsearch,
|
* Returns the integer index of the element from +self+ found by a binary search,
|
||||||
* but returns the _index_ of the found element instead of the element itself.
|
* or +nil+ if the search found no suitable element.
|
||||||
|
*
|
||||||
|
* See {Binary Searching}[rdoc-ref:bsearch.rdoc].
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static VALUE
|
static VALUE
|
||||||
|
Loading…
x
Reference in New Issue
Block a user