This project is closed and read-only.
Bug #1545 » 0003-hash.c-select_i-Fix-minor-documentation-typo.patch
| hash.c | ||
|---|---|---|
|
* call-seq:
|
||
|
* hsh.select {|key, value| block} => a_hash
|
||
|
*
|
||
|
* Returns a new hash consisting of entries which the block returns true.
|
||
|
* Returns a new hash consisting of entries for which the block returns true.
|
||
|
*
|
||
|
* h = { "a" => 100, "b" => 200, "c" => 300 }
|
||
|
* h.select {|k,v| k > "a"} #=> {"b" => 200, "c" => 300}
|
||