On 06/29/2013 11:42 AM, Joseph Rushton Wakeling wrote:
> I should add that bearophile has been fantastic in suggesting alternative
> design
> patterns that don't require either lockstep _or_ zip, but I still think this
> lockstep/zip discrepancy needs resolving.
According to the docs: zip "offers
On 06/28/2013 03:19 PM, Joseph Rushton Wakeling wrote:
> Consider the following equivalent code using zip and lockstep respectively to
> iterate over the entries in an array and set their values:
>
> auto arr1 = new double[10];
> foreach(i, ref x; zip(iota(10), arr1))
> {
> x =