simendsjo:

> std.array includes a method, array(), for doing exactly this:
> int[] test2 = array(map!"a+a"(test1)); //eager

With 2.059 you can write that also in a more readable way, because there is 
less nesting:

int[] test2 = test1.map!q{a + a}().array();

Bye,
bearophile

Reply via email to