DOCUMENTATION CENTER SEARCH
Mathematica
>
Structural Operations on Expressions
>
Built-in
Mathematica
Symbol
Rearranging Lists
Tutorials »
|
Permutations
RotateLeft
RotateRight
StringReverse
Transpose
See Also »
|
List Manipulation
Parts of Matrices
Rearranging & Restructuring Lists
Structural Operations on Expressions
New in 6.0: List Manipulation
More About »
Reverse
Reverse
[
expr
]
reverses the order of the elements in
expr
.
Reverse
[
expr
,
n
]
reverses elements at level
n
in
expr
.
Reverse
[
expr
, {
n
1
,
n
2
,
...
}]
reverses elements at levels
n
1
,
n
2
,
...
in
expr
.
MORE INFORMATION
Reverse
works on
SparseArray
objects, reversing the elements in the corresponding ordinary array.
Reverse
[
expr
]
is equivalent to
Reverse
[
expr
, 1]
.
For a matrix
m
,
Reverse
[
m
]
reverses the order of the rows, and
Reverse
[
m
, 2]
reverses the order of the columns.
EXAMPLES
CLOSE ALL
Basic Examples
(1)
In[1]:=
Out[1]=
Generalizations & Extensions
(1)
Applications
(3)
Properties & Relations
(1)
SEE ALSO
Permutations
RotateLeft
RotateRight
StringReverse
Transpose
TUTORIALS
Rearranging Lists
MORE ABOUT
List Manipulation
Parts of Matrices
Rearranging & Restructuring Lists
Structural Operations on Expressions
New in 6.0: List Manipulation
New in 1 | Last modified in 6
© 2008 Wolfram Research, Inc.