Project

General

Profile

This project is closed and read-only.

Bug #1545 » 0003-hash.c-select_i-Fix-minor-documentation-typo.patch

runpaint (Run Paint Run Run), 05/31/2009 12:38 PM

View differences:

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}
(5-5/7)