You can use an anonymous function, as in
mapslices(t -> [mean(t), median(t), iqr(t)], A, 1)
but using concepts and splatting, as in your last example, is also great. For very large arrays, you can avoid the time distributions introduced by transposition and splatting, but in most cases you do not need to pay attention to this.
Andreas Noack
source share