Tuples
suggest changeIntroduction
A tuple type is a comma-separated list of types, enclosed in parentheses.
The types can be named, and those names refer to the individual values.
An element name consists of an identifier followed immediately by a colon (:).
A common use is a function return type: one tuple can carry several values.
Remarks
Tuples are value types. More detail is in the documentation: developer.apple.com/library/content/documentation/Swift/Conceptual/Swift_Programming_Language/TheBasics.html
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents