3 ms·
This is amazing. Thank you so very much! I was very impressed by responses to queries like this: howdoi retrieve the keys from an array of hashes in ruby
by lightyrs 14y ago
This is amazing. Thank you so very much!
I was very impressed by responses to queries like this:
howdoi retrieve the keys from an array of hashes in ruby
hash = {"apple" => "fruit", "carrot" => "vegetable"}
array = hash.keys #=> ["apple", "carrot"]