⌽ — Reverse / Rotate
Function. Keys: Alt-2. Hanzi: 转 (轉). Ranks: 1 monadic, 0 1 dyadic
⌽Y reverses the last axis. ⌽⍠K selects the axis.
⌽1 2 3 ⍝ 3 2 1
⌽₀2 2⍴⍳4ₓ ⍝ [2 3⋄0 1]ₓN⌽Y rotates left by N places; negative N rotates right. Whole counts cycle modulo axis length.
1⌽"abcd" ⍝ "bcda"
¯1⌽"abcd" ⍝ "dabc"A count array supplies counts for the unrotated axes. See ⊖.
Inverse
⌽⁻Y is ⌽Y. X⌽⁻Y rotates Y back by X.
1⌽⁻2 3 1 ⍝ 1 2 3