From: "Martin J. Dürst" Date: 2012-07-21T19:37:13+09:00 Subject: [ruby-core:46588] Re: [ruby-trunk - Feature #6669] A method like Hash#map but returns hash On 2012/07/21 18:12, matz (Yukihiro Matsumoto) wrote: > > Issue #6669 has been updated by matz (Yukihiro Matsumoto). > > > Since Hash#reject, Hash#select does return a hash, I think it's OK for Hash#collect to return a hash. > > I believe Hash#map should return an array as before, just like find_all does. > > Matz. Wouldn't it be really confusing that for Arrays, #map and #collect are synonyms, but for Hash, they are different? Regards, Martin.