Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Core Language > Expressions > Structural Operations on Expressions > Reverse >

Reverse

Reverse[expr]
reverses the order of the elements in expr.
Reverse
reverses elements at level n in expr.
Reverse
reverses elements at levels , , ... in expr.
  • Reverse works on SparseArray objects, reversing the elements in the corresponding ordinary array.
  • For a matrix m, Reverse[m] reverses the order of the rows, and Reverse reverses the order of the columns.
Reverse works with heads other than List:
Reverse sublists:
Reverse operands:
Turn an array plot upside down:
Reverse is its own inverse:
New in 1 | Last modified in 6
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF