Rotate - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

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]