Hi,
In message "[ruby-talk:10853] Re: RubyChangeRequest #U002: new proper name for Hash#indexes, Array#indexes"
on 01/02/15, "Mike Wilson" <wmwilson01 / hotmail.com> writes:
|Array#at seems to be most similar, only it just takes 1 argument. Would it
|be possible to extend that to multiple arguments and for the Hash as well?
Possible. The key is here.
|a.at(0) -> 1 # maybe change to [1]?
For consistency, at(0) might be better to return an array, but it's
incompatibility, which I don't want to incorporate.
Array#elements? Hash#values?
matz.