Left package:clash-prelude

Dynamically rotate a Vector to the left:
>>> 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 :> Nil
NB: Use rotateLeftS if you want to rotate left by a static amount.
Statically rotate a Vector to the left:
>>> let xs = 1 :> 2 :> 3 :> 4 :> Nil

>>> rotateLeftS xs d1
2 :> 3 :> 4 :> 1 :> Nil
NB: Use rotateLeft if you want to rotate left by a dynamic amount.