From: Sean O'Halpin Date: 2006-06-11T21:34:46+09:00 Subject: Re: Hash#[] On 6/11/06, Daniel Schierbeck wrote: > Am I the only one who thinks this would be a natural behavior for Hash#[]? > > hsh = {:foo => 'FOO', :bar => 'BAR', :baz => 'BAZ'} > hsh[:foo] #=> "FOO" > hsh[:foo, :baz] #=> ["FOO", "BAZ"] > No, you're not. However, there is Hash#values_at() which already does the same thing. (Can anyone remind me why Hash#[] doesn't allow *args?) Regards, Sean