Rotate - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.
Our website is currently undergoing maintenance, which may result in occasional errors while browsing. We apologize for any inconvenience this may cause and are working swiftly to restore full functionality. Thank you for your patience.

Online Help

All Products    Maple    MapleSim


ListTools

  

Rotate

  

rotate the elements in a list

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

Rotate(L, N)

Parameters

L

-

list

N

-

integer

Description

• 

The Rotate(L, N) function rotates the elements in list L by N positions.

• 

In the special case where L contains no elements,  is returned.

Examples

L1,2,3,4,5,6,7,8,9,10

L1,2,3,4,5,6,7,8,9,10

(1)

withListTools:

RotateL,1

2,3,4,5,6,7,8,9,10,1

(2)

RotateL,3

4,5,6,7,8,9,10,1,2,3

(3)

RotateL,3

8,9,10,1,2,3,4,5,6,7

(4)

RotateL,12

9,10,1,2,3,4,5,6,7,8

(5)

See Also

list

ListTools

type[list]