Name: SEPPLES 2011-07-26 17:41
HASKELL
std::combinable<int> harp;
std::parallel_for_each(derp.cbegin(), derp.cend(), [&](derp_type::const_iterator herp) {
harp.local() = harpdarp(herp);
});
int final_harp = harp.combine([](int x, int y) {
return x + y;
});