How do I insert into an array?

Hi,

At Mon, 19 Apr 2004 05:59:06 +0900,
Sam Roberts wrote in [ruby-talk:97533]:

Is there a better way than this “pop,push,push” thing? I looked for an
Array.insert, but can’t find anything like it.

Array#insert is since 1.7.

···


Nobu Nakada