Re: taskPool.map using functions with more than one input

2012-11-14 Thread Jonathan M Davis
On Wednesday, November 14, 2012 18:31:07 Joseph Rushton Wakeling wrote: > Is it possible to use taskPool.map with functions that take more than one > input? > > Consider the following code which uses map to convert a given value to its > sum with another number: > > import std.algorithm, std.para

taskPool.map using functions with more than one input

2012-11-14 Thread Joseph Rushton Wakeling
Is it possible to use taskPool.map with functions that take more than one input? Consider the following code which uses map to convert a given value to its sum with another number: import std.algorithm, std.parallelism, std.range, std.stdio; real pairsum(real x, real y) {