Hacker News new | ask | show | jobs
by lightyrs 4915 days 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"]