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.