Using zip to copy subarray into another

Joseph Rushton Wakeling joseph.wakeling at webdrake.net
Tue Aug 13 14:37:15 PDT 2013


On 08/13/2013 09:22 PM, Craig Dillabaugh wrote:
> I have code that attempts to copy a slice of one array into
> another using zip. However, the array is not updated.   I am
> guessing this is because modifying the returned tuple does not
> modify the actual arrays.
> 
> Is there any way to do this.

Try lockstep instead of zip.  See:
http://d.puremagic.com/issues/show_bug.cgi?id=8155#c8

... for more info on the reasons why zip doesn't work here.



More information about the Digitalmars-d-learn mailing list