

Reverse
Examples
open all close allBasic Examples (2)
Scope (3)
Reverse works with heads other than List:
Reverse the order of sublists, keeping each sublist unchanged:
Reverse the of sublist contents, keeping the order of sublists unchanged:
Reverse both the order of sublists and their contents:
Reverse an Association on the first and second levels:
Applications (2)
Properties & Relations (4)
Reverse is its own inverse:
For a matrix m, Reverse[m] reverses the rows:
Reverse[m,2] reverses the columns:
Reverse[m,{1,2}] reverses both rows and columns:
Reverse[expr,n] is equivalent to Map[Reverse,expr,{n-1}]:
Since the default level for Map is {1}, the third argument is unnecessary for n==2:
Reverse[expr,Range[n]] is equivalent to Map[Reverse,expr,{0,n-2}]:
Tech Notes
Related Guides
History
Introduced in 1988 (1.0) | Updated in 2003 (5.0) ▪ 2007 (6.0)
Text
Wolfram Research (1988), Reverse, Wolfram Language function, https://reference.wolfram.com/language/ref/Reverse.html (updated 2007).
CMS
Wolfram Language. 1988. "Reverse." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2007. https://reference.wolfram.com/language/ref/Reverse.html.
APA
Wolfram Language. (1988). Reverse. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Reverse.html
BibTeX
@misc{reference.wolfram_2025_reverse, author="Wolfram Research", title="{Reverse}", year="2007", howpublished="\url{https://reference.wolfram.com/language/ref/Reverse.html}", note=[Accessed: 11-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_reverse, organization={Wolfram Research}, title={Reverse}, year={2007}, url={https://reference.wolfram.com/language/ref/Reverse.html}, note=[Accessed: 11-August-2025]}