>>> let xs = 1 :> 2 :> 3 :> 4 :> Nil >>> rotateRight xs 1 4 :> 1 :> 2 :> 3 :> Nil >>> rotateRight xs 2 3 :> 4 :> 1 :> 2 :> Nil >>> rotateRight xs (-1) 2 :> 3 :> 4 :> 1 :> NilNB: Use rotateRightS if you want to rotate right by a static amount.
>>> let xs = 1 :> 2 :> 3 :> 4 :> Nil >>> rotateRightS xs d1 4 :> 1 :> 2 :> 3 :> NilNB: Use rotateRight if you want to rotate right by a dynamic amount.