APLX Help : Help on APL language : APL Primitives : ⌽ Reverse
|
|
![]() |
|
Reverses the order of the numbers or letters in the right-hand argument. (See also ⌽ 1 2 3 4 5 6 6 5 4 3 2 1 ⌽(1 2) (3 4) (5 6) (The three element are reversed, but not 5 6 3 4 1 2 their contents) ⌽ 'BOB WON POTS' STOP NOW BOB TABLE 1 2 3 4 5 6 7 8 9 0 ⌽ TABLE (When applied to a matrix, it 5 4 3 2 1 reverses the order within each 0 9 8 7 6 row. You can use the operator []- ⌽[1]TABLE 'axis' to make the rotation apply 6 7 8 9 0 to a different dimension.) 1 2 3 4 5 By default reverse, |
|
APLX Help : Help on APL language : APL Primitives : ⌽ Reverse
|
Copyright © 1996-2010 MicroAPL Ltd