Skip to content

RotateLeft

Rotates list elements to the left.

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