Julian way of expressing a buffer swap

In my real code I do specify that as Array{Float64, 3}. My efforts to pare things down for the MWE were a bit excessive; I can put the dimension back in the example if helpful.