T. Onoma
12/15/2004 1:03:00 AM
Hi,
On Tuesday 14 December 2004 07:05 pm, Yukihiro Matsumoto wrote:
| In message "Re: Array#at(selector,...)"
|
| on Wed, 15 Dec 2004 00:17:25 +0900, "trans. (T. Onoma)"
<transami@runbox.com> writes:
| |Is there good reason to have two different methods for this?
| |
| | array.at(index)
| | array.values_at(selector,... )
|
| Return value, the latter returns an array of specified values.
|
| |And then
| |
| | array.delete_at(index)
| |
| |Can't this take selector instead?
|
| The change would cause incompatibility in return values.
Ah I see, same difficulty. Thank you.
So then, I am under the impression that the two method approach is best --a
#delete_values_at for instance.
T.