in reply to Re: Inserting into an array while stepping through it
in thread Inserting into an array while stepping through it
Or you could replace the element of the array by a reference to the returned list and then flatten the array when the loop is complete
I expect it would also be faster (too lazy to test) as it is a classic link list solution and passes a minimal amount of data around, etc, etc. It will use roughy double the memory though when you flatten the list...
cheers
tachyon
s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print
|
|---|