RotateRight
Usage
• RotateRight[expr, n] 把expr中n位置的元素循环移到右边.
• RotateRight[expr] 把一个位置循环移到右边.
• RotateRight[expr,  , , ... ] 把依次相连续层  位置的元素循环移到右边.
Notes
• RotateRight[expr, -n] 把n位置旋转到左边.
Further Examples
This rotates each element one place to the right.
In[1]:=
|
Out[1]=
|
This rotates each element two places to the right.
In[2]:=
|
Out[2]=
|
This rotates each element one place to the left.
In[3]:=
|
Out[3]=
|
|