Tuple Results with Multiple functions and TaskPool
Multiple functions and tuple results
taskPool.reduce() can all take more than one function, in which case the results are returned as a Tuple. The results of individual functions correspond to the elements of the tuple in the order that the functions are specified. For example, the result of the first function is the first member of the tuple.
The following program demonstrates multiple functions with
std.algorithm.map. Note that the return types of the functions need not be the same, as seen in the
tenTimes() functions below. In that case, the types of members of the tuples would be different as well: