This project is closed and read-only.
Bug #1545 » 0004-hash.c-rassoc_i-Minor-stylistic-tweak-to-docs.patch
| hash.c | ||
|---|---|---|
|
* hash.rassoc(key) -> an_array or nil
|
||
|
*
|
||
|
* Searches through the hash comparing _obj_ with the value using <code>==</code>.
|
||
|
* Returns the first key-value pair (two elements array) that matches. See
|
||
|
* Returns the first key-value pair (two-element array) that matches. See
|
||
|
* also <code>Array#rassoc</code>.
|
||
|
*
|
||
|
* a = {1=> "one", 2 => "two", 3 => "three", "ii" => "two"}
|
||