foreach(i,ref val; ndim_arr)??
ZombineDev via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Tue May 10 07:52:22 PDT 2016
On Tuesday, 10 May 2016 at 13:52:27 UTC, ag0aep6g wrote:
> Am 10.05.2016 um 12:21 schrieb ZombineDev:
>> auto indexed_range = lockstep(
>
> Tiny nitpick: lockstep doesn't return a range. It uses opApply
> to support foreach.
Yes I know and I chose it in purpose, because it allows ref
access to individual elements (zip returns a tuple which doesn't
provide ref access). Otherwise my translation of OP wouldn't be
accurate.
More information about the Digitalmars-d-learn
mailing list