I have an array of 6 different colors:
var colorList: [String] = ["blue", "green", "purple", "red", "yellow", "orange"]
and I am trying to create a function that shifts each element by one to the right like so:
["orange", "blue", "green", "purple", "red", "yellow"]
How do I go about doing this?