:: Int -> [a] -> [a] package:harpie

rotate a list
>>> rotate 1 [0..3]
[1,2,3,0]

>>> rotate (-1) [0..3]
[3,0,1,2]