Using ranges
You can use the subscript syntax with ranges to fetch more than a single value from an array. For example, if you’d like to get the next two players to have their turns, you could do this:
let upcomingPlayers = players[1...2] print(upcomingPlayers)
// > ["Bob", "Cindy"]
As you can see, the constant upcomingPlayers is actually an array of the same type as the original array.
The range you used is 1...2, which represent the second and third items in each array. You can use any index here as long as the start value is smaller than the end value and they’re both within the bounds of the array.