From: Simon Strandgaard Date: 2004-04-19T08:49:08+09:00 Subject: Re: add elment on the first index of an array On Mon, 19 Apr 2004 01:44:50 +0200, Linus Sellberg wrote: > Dirk Einecke wrote: > >> Is there a shorter way to do this? > > ['something'] + $a_foo irb(main):001:0> values=%w(a b c) => ["a", "b", "c"] irb(main):002:0> values[0, 0] = 666 => 666 irb(main):003:0> p values [666, "a", "b", "c"] => nil irb(main):004:0> -- Simon Strandgaard