From: Florian Gross Date: 2005-01-26T06:25:49+09:00 Subject: Re: Array#insert implementation Zuzzurro wrote: > class Array > def insert(v, i) > [...] > Is there a better way of doing this? Sure, just use Array#insert: irb(main):043:0> ary = [1, 2, 3]; ary.insert(1, 5); ary => [1, 5, 2, 3]