On Tue, 25 Jul 2000, Hugh Sasse Staff Elec Eng wrote:

> case for an "insert" method for Array?  Or "Is There A Better Way To Do
> It?"

Found it.  I had not tried a range on the left side of assignment:

irb(main):019:0> a = [[1, 2, 3], 8, 9, [0, 1, 2]]
[[1, 2, 3], 8, 9, [0, 1, 2]]
irb(main):020:0> a[2...3]=[11,12,13]
[11, 12, 13]
irb(main):021:0> a
[[1, 2, 3], 8, 11, 12, 13, [0, 1, 2]]
irb(main):022:0> 

I assumed it would fail.
	Hugh
	hgs / dmu.ac.uk