J
Jeff
Hash#select and Hash#map return arrays. In some cases I want to get
hashes back instead.
I can take the returned arrays and transform them back into hashes,
but it would be nice to avoid the extra step.
Plus, it just surprised me that #select and #map aren't overridden for
Hash to return new Hashes instead of arrays.
Am I missing something?
Jeff
hashes back instead.
I can take the returned arrays and transform them back into hashes,
but it would be nice to avoid the extra step.
Plus, it just surprised me that #select and #map aren't overridden for
Hash to return new Hashes instead of arrays.
Am I missing something?
Jeff