PRODUCTS
Mathematica
Mathematica Home Edition
Mathematica for Students
Mathematica for the Classroom
grid
Mathematica
Wolfram Lightweight Grid Manager
web
Mathematica
Mathematica Player
(free download)
Mathematica Player Pro
Wolfram
Workbench
Mathematica
Applications
SOLUTIONS
Industry
Chemical Engineering
Image Processing
Mechanical Engineering
Petroleum Engineering
Environmental Sciences
Bioinformatics
Data Analysis and Mining
Financial Risk Management
Statistics
Software Engineering
More...
Education
Higher Education
Precollege Education
Students
Technology
Interactive Deployment
High-Performance and Parallel Computing (HPC)
See Also: Technology Guide
PURCHASE
Online Store
Other Ways to Buy
Volume & Site Licensing
Contact Sales
Software
Service
Upgrades
Training
Books
FOR USERS
All User Resources
Product Registration
Technical Support
Customer Service
Developer Support
Does My Site Have a License?
Free Seminars
Learning Center
Training
Custom Group Seminars
Documentation & Examples
Tutorial Screencasts
Video Gallery
Demonstrations Project
Education Portal
Student Resources
COMPANY
About Wolfram Research
News & Events
Wolfram Blog
Employment Opportunities
History of
Mathematica
Stephen Wolfram's Home Page
Contact Us
OUR SITES
Wolfram|Alpha
Demonstrations Project
Wolfram Blog
MathWorld
Integrator
Wolfram Functions Site
Mathematica Journal
Wolfram Library Archive
Wolfram
Tones
Wolfram Science
Stephen Wolfram
DOCUMENTATION CENTER SEARCH
Mathematica
>
Core Language
>
Expressions
>
Structural Operations on Expressions
>
Built-in
Mathematica
Symbol
Rearranging Lists
Tutorials »
|
Permutations
RotateLeft
RotateRight
StringReverse
Transpose
ImageReflect
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
ImageReflect
TUTORIALS
Rearranging Lists
MORE ABOUT
List Manipulation
Parts of Matrices
Rearranging & Restructuring Lists
Structural Operations on Expressions
New in 6.0: List Manipulation
RELATED LINKS
Demonstrations with Reverse
(
Wolfram Demonstrations Project
)
New in 1 | Last modified in 6