RotateLeft[expr,n]
cycles the elements in expr n positions to the left.
RotateLeft[expr]
cycles one position to the left.
RotateLeft[expr,{n1,n2,…}]
cycles elements at successive levels ni positions to the left.


RotateLeft
RotateLeft[expr,n]
cycles the elements in expr n positions to the left.
RotateLeft[expr]
cycles one position to the left.
RotateLeft[expr,{n1,n2,…}]
cycles elements at successive levels ni positions to the left.
Details

- RotateLeft[expr,-n] rotates n positions to the right.
- RotateLeft can be used on SparseArray and Association objects.
Examples
open all close allBasic Examples (4)
Rotate two positions to the left:
Rotate one position to the left:
Rotate Association one position to the left:
Rotate Association on the first and second levels:
Generalizations & Extensions (2)
Tech Notes
Related Guides
Related Links
History
Introduced in 1988 (1.0) | Updated in 2003 (5.0)
Text
Wolfram Research (1988), RotateLeft, Wolfram Language function, https://reference.wolfram.com/language/ref/RotateLeft.html (updated 2003).
CMS
Wolfram Language. 1988. "RotateLeft." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2003. https://reference.wolfram.com/language/ref/RotateLeft.html.
APA
Wolfram Language. (1988). RotateLeft. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/RotateLeft.html
BibTeX
@misc{reference.wolfram_2025_rotateleft, author="Wolfram Research", title="{RotateLeft}", year="2003", howpublished="\url{https://reference.wolfram.com/language/ref/RotateLeft.html}", note=[Accessed: 11-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_rotateleft, organization={Wolfram Research}, title={RotateLeft}, year={2003}, url={https://reference.wolfram.com/language/ref/RotateLeft.html}, note=[Accessed: 11-August-2025]}