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

Documentation / Mathematica / Built-in Functions / Lists and Matrices / List Operations /

RotateRight

FilledSmallSquare RotateRight[expr, n] cycles the elements in expr n positions to the right.

FilledSmallSquare RotateRight[expr] cycles one position to the right.

FilledSmallSquare RotateRight[expr, , , ... ] cycles elements at successive levels positions to the right.

FilledSmallSquare Example: RotateRight[a, b, c, 1] LongRightArrow.

FilledSmallSquare RotateRight[expr, -n] rotates n positions to the left.

FilledSmallSquare RotateRight can be used on SparseArray objects.

FilledSmallSquare See Section 1.8.9 and Section 1.8.12.

FilledSmallSquare See also: RotateLeft, Reverse, PadRight.

FilledSmallSquare New in Version 1.

Further Examples