Notes posted by Artur79
RSS feed
Artur79 -
June 25, 2010 - (v1_8_6_287 - v1_8_7_72)
0 thanks
Can operate for both key and value for Hash
If you need to process both key and value of the Hash:
>> {"a" => "aa", "b" => "bb", "c" => "cc"}.collect {|k,v| [k,k+v]} => [["a", "aaa"], ["b", "bbb"], ["c", "ccc"]]