Variables and constants can represent a collection of various properties and objects. The most common collection types are arrays, matrices, sets, and dictionaries. An array is an ordered list of distinct objects; a matrix is, in short, an array of arrays; a set is an unordered list of distinct objects; and a dictionary is an unordered list that utilizes a key : value association with the data.
Here's an example of an array in Swift:
let stageNames : [String] = ["Downtown Tokyo","Heaven Valley","Nether"]
stageNames is a collection of strings representing the names of a game's stages. Arrays are ordered by subscripts from
0 to array length
stageNames would be