An array rotator in SWIFT

Rotates arrays.