http://d.puremagic.com/issues/show_bug.cgi?id=5756



--- Comment #1 from bearophile_h...@eml.cc 2011-03-23 23:47:04 PDT ---
As in std.parallelism, I suggest to add a second optional argument to the
amap()/afilter(), an optional buffer to return the result. If the buffer is
provided, it must be the same length as the range.

So you write:

auto numbers = iota(10);
auto squareRoots = new double[numbers.length];
amap!sqrt(numbers, squareRoots);

Instead of:

auto numbers = iota(10);
auto squareRoots = new double[numbers.length];
copy(map!sqrt(numbers), squareRoots);

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to