Inserting contents of one array into another
Posted: Fri Aug 07, 2009 12:22 pm
by allistar >> Sun, 20 Apr 2003 23:53:49 GMT
Hi all,
I have an array of objects (which could be quite large) and a second array (holding the same types of objects as the first array). I would like to insert the contents of array 2 into array 1 at a particular position.
e.g.
array 1 contains 200,000 objects.
array 2 contains 10,000 objects.
I would like to insert those 10,000 objects from array 1 into position (say) 139,000 of array 1.
That is not hard to do in code, but because of the size of array 1
any solution I come up with is slow.
Does anyone know of a trick or hack to achieve this?
Thanks,
Allistar.
Hi all,
I have an array of objects (which could be quite large) and a second array (holding the same types of objects as the first array). I would like to insert the contents of array 2 into array 1 at a particular position.
e.g.
array 1 contains 200,000 objects.
array 2 contains 10,000 objects.
I would like to insert those 10,000 objects from array 1 into position (say) 139,000 of array 1.
That is not hard to do in code, but because of the size of array 1
any solution I come up with is slow.
Does anyone know of a trick or hack to achieve this?
Thanks,
Allistar.