I use mapslices() to apply the same expression for each row of some array:
function f(x)
...
end
a = rand(Normal(), 10000, 50)
b = mapslices(x -> f(x), a, dims = [2])
Is there some elegant way to run a similar procedure in parallel using all the CPU cores? Something similar to how in R you can replace apply() with future_apply(), so that everything is automatically parallelized. Or mapslices() are not suitable here at all and is needed to use some other structure?