From: "Hal E. Fulton" Date: 2002-09-20T12:38:11+09:00 Subject: Re: select and select ----- Original Message ----- From: "Yukihiro Matsumoto" To: "ruby-talk ML" Sent: Thursday, September 19, 2002 7:14 PM Subject: Re: select and select > A new method (say "quux" for example) should satisfy > > * obj.quux(a,b,c) returns [obj[a],obj[b],obj[c]] for all indexable > collections (i.e. Array, Hash, MatchData and Struct), perhaps > except for String, which is mere string of characters rather than > indexable collection. So preferably it should sound natural both > for arrays, hashes and others. > > * obj.quux() either returns an empty array or causes exception, due > to the case like obj.quux(*ary) where ary is an empty array. The latter makes that other proposal inappropriate, I see now. Hal