Parallel processing and further use of output

Jay Norwood via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Sep 26 10:20:32 PDT 2015


This is a work-around to get a ulong result without having the 
ulong as the range variable.

ulong getTerm(int i)
{
    return i;
}
auto sum4 = taskPool.reduce!"a + 
b"(std.algorithm.map!getTerm(iota(1000000001)));



More information about the Digitalmars-d-learn mailing list