Mathematica 9 is now available

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



Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.