On Friday, 10 February 2017 at 12:58:19 UTC, Stefan Koch wrote:
If you want it to modify the array you have to use a ref elem. If you do you will see that foreach is a little slower.
Thanks, I should have spotted that. Bastiaan.
Bastiaan Veelo via Digitalmars-d-learn Fri, 10 Feb 2017 05:37:33 -0800
On Friday, 10 February 2017 at 12:58:19 UTC, Stefan Koch wrote:
If you want it to modify the array you have to use a ref elem. If you do you will see that foreach is a little slower.
Thanks, I should have spotted that. Bastiaan.