From: Sebastian Hungerecker Date: 2009-01-08T20:21:14+09:00 Subject: Re: Can you guess what it will be happened? Brian Candler wrote: > irb(main):003:0> a.insert(a.length, *b) > => [1, 2, 3, 4] > irb(main):004:0> a > => [1, 2, 3, 4] > > Of course, a += b is a simpler way to write this. Actually a.concat(b) is the simpler way to write this. a += b does something slightly different (create a third array [1,2,3,4] and then assign that to a) -- Jabber: sepp2k@jabber.org ICQ: 205544826