Mathematica > Core Language > List Manipulation > Rearranging & Restructuring Lists >
Mathematica > Data Manipulation > Handling Arrays of Data > Rearranging & Restructuring Lists >

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.
  • RotateLeft[expr, -n] rotates n positions to the right.
New in 1 | Last modified in 5
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team