From: Hugh Sasse Staff Elec Eng Date: 2000-07-25T17:01:31+01:00 Subject: [ruby-talk:04214] Re: inserion in array. On Tue, 25 Jul 2000, [iso-8859-1] Aleksi Niemel� wrote: > Well, I'm not sure what you want, but I assume you want to insert another > array's content (all elements) after certain place in another array. That > is, by example, to array [1,2,3] you want to insert array [4,5,6] right > after second element, so that the end result would be [1,2,4,5,6,3]. > > And my ruby prints: > > ruby -e 'a=[1,2,3]; a[2,0]=[4,5,6]; p a' > > [1, 2, 4, 5, 6, 3] > > - Aleksi That is an interesting one. I think the documentation for 1.4 should say what happens when these patterns are on the left side of an assignment. I may write some patches after playing with this some more. > > Thank you, Hugh