PRODUCTS
PURCHASE
FOR USERS
COMPANY
OUR SITES
DOCUMENTATION CENTER SEARCH
Mathematica
>
Rearranging & Restructuring Lists
>
Built-in
Mathematica
Symbol
Rearranging Lists
Rearranging Nested Lists
Tutorials »
|
RotateLeft
Reverse
PadRight
BitShiftRight
See Also »
|
Parts of Matrices
Rearranging & Restructuring Lists
More About »
RotateRight
RotateRight
[
expr
,
n
]
cycles the elements in
expr
n
positions to the right.
RotateRight
[
expr
]
cycles one position to the right.
RotateRight
[
expr
, {
n
1
,
n
2
,
...
}]
cycles elements at successive levels
positions to the right.
MORE INFORMATION
RotateRight
[
expr
, -
n
]
rotates
n
positions to the left.
RotateRight
can be used on
SparseArray
objects.
EXAMPLES
CLOSE ALL
Basic Examples
(2)
Rotate two positions to the right:
In[1]:=
Out[1]=
Rotate one position to the right:
In[1]:=
Out[1]=
Generalizations & Extensions
(2)
Applications
(4)
SEE ALSO
RotateLeft
Reverse
PadRight
BitShiftRight
TUTORIALS
Rearranging Lists
Rearranging Nested Lists
MORE ABOUT
Parts of Matrices
Rearranging & Restructuring Lists
New in 1
© 2008 Wolfram Research, Inc.