xxxxxxxxxx
import std.parallelism;
__gshared string[] args;
int f(int a, int b)
{
if (args.length > 1)
return a+b;
else
return a-b;
}
int main(string[] a)
{
args = a;
auto res = taskPool.reduce!f([1, 2, 3]);
return 0;
}