StringTools[Rotate] - rotate the characters in a string by a given amount
|
Calling Sequence
|
|
Rotate( s, offset )
|
|
Parameters
|
|
s
|
-
|
Maple string
|
offset
|
-
|
integer; number of characters by which to rotate the string
|
|
|
|
|
Description
|
|
•
|
The Rotate(s, offset) command rotates a string s by the number of characters given in offset. The value of offset can be positive, negative, or zero. If the value of offset is zero, the original string is returned unchanged.
|
|
|
Examples
|
|
>
|
|
>
|
|
| (1) |
>
|
|
| (2) |
>
|
|
| (3) |
>
|
|
| (4) |
>
|
|
| (5) |
|
|
Download Help Document
Was this information helpful?