http://www.devtalking.com/articles/tuple-in-swift/index.html

创建:

let firstHighScore = ("Mary", 9001)

也可以:

let secondHighScore = (name: "James", score: 4096)

读取比较方便:

let firstHighScore = ("Mary", 9001)
firstHighScore.0            // Mary
firstHighScore.1        // 9001

更好的:

let (firstName, firstScore) = firstHighScore
firstName       // Mary
firstScore      // 9001

配合 typealias

typealias LineIndexTuple = (line: CTLine, index: Int)