Right package:clash-prelude

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

>>> rotateRightS xs d1
4 :> 1 :> 2 :> 3 :> Nil
NB: Use rotateRight if you want to rotate right by a dynamic amount.