From: Florian Frank Date: 2002-09-21T21:12:46+09:00 Subject: Re: select and select Am 2002-09-20 09:14:10 +0900 schrieb Yukihiro Matsumoto: > A new method (say "quux" for example) should satisfy Would it be possible to change Array#fetch and Hash#fetch to take more than one argument? %w[a b c d].fetch(1,2) ==>["b", "c"] {"a"=>0,"b"=>1,"c"=>2,"d"=>3}.fetch("b","c") ==>[1, 2] Using a block would be nice and short, too: %w[a b c d].fetch(1,2) { |x| p x } "b" "c" ==>["b", "c"] > * obj.quux(a,b,c) returns [obj[a],obj[b],obj[c]] for all indexable > collections (i.e. Array, Hash, MatchData and Struct), I think that point is very important. I would prefer to be able to exchange data structures in my code without changing every access to them. Changing the hash/array and reference/direct stuff all the time is one thing I hate most about Perl. -- Never attribute to malice that which is adequately explained by stupidity. -- "Hanlons Razor"