How to append range to array?

weaselcat via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat May 23 01:35:43 PDT 2015


On Saturday, 23 May 2015 at 07:03:35 UTC, Vladimir Panteleev 
wrote:
> int[] arr = [1, 2, 3];
> auto r = iota(4, 10);
> // ???
> assert(equal(arr, iota(1, 10)));

import std.array : array;
arr ~ r.array;


More information about the Digitalmars-d-learn mailing list