This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

RotateRight

RotateRight
cycles the elements in expr n positions to the right.
RotateRight[expr]
cycles one position to the right.
RotateRight
cycles elements at successive levels positions to the right.
Rotate two positions to the right:
Rotate one position to the right:
Rotate two positions to the right:
In[1]:=
Click for copyable input
Out[1]=
 
Rotate one position to the right:
In[1]:=
Click for copyable input
Out[1]=
Rotate one position right at the first level, and left at the second level:
Rotate an expression with any head:
Successively rotate a list right:
Rotate successive rows of a matrix by their row number:
Rotate a 2D image:
Rotate operands:
New in 1