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

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

RotateLeft

FilledSmallSquare RotateLeft[expr, n] cycles the elements in expr n positions to the left.

FilledSmallSquare RotateLeft[expr] cycles one position to the left.

FilledSmallSquare RotateLeft[expr, , , ... ] cycles elements at successive levels positions to the left.

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

FilledSmallSquare RotateLeft[expr, -n] rotates n positions to the right.

FilledSmallSquare RotateLeft can be used on SparseArray objects.

FilledSmallSquare See Section 1.8.9 and Section 1.8.12.

FilledSmallSquare See also: RotateRight, Reverse, PadLeft.

FilledSmallSquare New in Version 1.

Further Examples