Notes posted by earless1
RSS feed
0 thanks
Passing in an Array instead of individual arguments
Pass in array instead of list
h = { "cat" => "feline", "dog" => "canine", "cow" => "bovine" } keys_i_want = %w(cow cat) h.values_at(*keys_i_want) #=> ["bovine", "feline"]