How to map a function over the given axis of a multi-dimension array and return another array?

You could use mapslices:

result = mapslices(rotl90, images; dims = (2, 3))
5 Likes