From: matz@... (Yukihiro Matsumoto) Date: 2001-05-01T16:24:46+09:00 Subject: [ruby-talk:14481] Re: RCR: Array#insert Hi, In message "[ruby-talk:14479] Re: RCR: Array#insert" on 01/05/01, Shugo Maeda writes: |At Sat, 28 Apr 2001 19:35:25 +0900, |Marko Schulz 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.