This should work,
(2 3 5 4⍴⍳24)(+⍤1⍤¯1)(2 4⍴⍳8)
VALUE ERROR
μ-Z__A_LO_RANK_X7_B[4] →(μ-X7≢¯1)⍴μ-WITH_AXES
^
You could use the axis operator generically
(2 3 5 4⍴⍳24){⍺+[1,(⍴⍴⍺)⌈⍴⍴⍵]⍵}(2 4⍴⍳8)
but the rank operator seems cleaner.
Best,
Xiao-Yong
