Syntax
rotr(string|array, [integer])
Description
The rotr() function will rotate the items in a string or array 1 element to the right if no integer amount is given, or by the amount stated by the given integer.
Example
a=[1,2,3,4,5,6] a=rotr(a) println(a) a=rotr(a, 3) println(a) a="This is a string" a=rotr(a) println(a) a=rotr(a, 6) println(a) [6, 1, 2, 3, 4, 5] [3, 4, 5, 6, 1, 2] gThis is a strin stringThis is a