Close
Close window
Rotate - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.
Maplesoft logo
Maplesoft logo

Online Help

All Products Maple MapleSim


[フレーム] [フレーム]

ListTools

Rotate

rotate the elements in a list

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)


Download Help Document

AltStyle によって変換されたページ (->オリジナル) /