#44
Rotate Sequence
 

Difficulty:N/A
Topics:medium seqs


Write a function which can rotate a sequence in either direction.
test not run
(= (__ 2 [1 2 3 4 5]) '(3 4 5 1 2))
test not run
(= (__ -2 [1 2 3 4 5]) '(4 5 1 2 3))
test not run
(= (__ 6 [1 2 3 4 5]) '(2 3 4 5 1))
test not run
(= (__ 1 '(:a :b :c)) '(:b :c :a))
test not run
(= (__ -4 '(:a :b :c)) '(:c :a :b))


Code which fills in the blank: