While exploring algorithms in Swift, couldn\'t find algorithm for array rotation in swift without using funcs shiftLeft / shiftRight.
shiftLeft
shiftRight
C has
We can use Slice
func rotLeft(a: [Int], d: Int) -> [Int] { let slice1 = a[..