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