Hi,
In message "[ruby-talk:14479] Re: RCR: Array#insert"
on 01/05/01, Shugo Maeda <shugo / ruby-lang.org> writes:
|At Sat, 28 Apr 2001 19:35:25 +0900,
|Marko Schulz <in6x059 / public.uni-hamburg.de> wrote:
|> I would actually prefer an version that is able to insert more than
|> one element, just like push can add more than one element at the
|> end. So here is my take:
|>
|>
|> class Array
|> def insert(pos, *elem)
|> self[pos,0] = elem
|> self
|> end
|> end
|
|I agree.
Sounds good. It will be merged into the development branch.
matz.