auto lineRange = File(fn).byLineCopy(); auto chomped = std.algorithm.map!"a.chomp"(lineRange); auto nums = taskPool.map!(to!double)(chomped); auto logs = taskPool.map!log10(nums);
double sum = 0; foreach(elem; logs) { sum += elem; } writeln("sum=",sum);