Swift provides three primary collection types, known as arrays, sets, and dictionaries, for storing collections of values.
Swift 提供了三种主要集合类型,称为 arrays、sets 和 dictionaries,用于存储值集合。
Arrays are ordered collections of values.
Arrays 是值的有序集合。
Sets are unordered collections of unique values.
Sets 是唯一值的无序集合。
Dictionaries are unordered collections of key-value associations.