It is often the case that I want to call a function
foo and pass it arguments which I'd like evaluated in parallel.
Is there an idiom for this?
E.g.,
val (v1, v2, v3, ..., vN) = parallel(calc1(),calc2(), calc3(), ... calcN())
foo(v1,v2,v3,...vN)
I'd like to do the following applyToParallelArgs(foo,calc1(),calc2(), calc3(), ... calcN())
Does such a applytoParallelArgs exist? Is there a better?
Jim