Skip to content

RotateRight

Rotates list elements to the right.

$ wo 'RotateRight[{1, 2, 3, 4, 5}]'
{5, 1, 2, 3, 4}
$ wo 'RotateRight[{a, b, c, d}, 2]'
{c, d, a, b}
$ wo 'RotateRight[{1, 2, 3}, 0]'
{1, 2, 3}