Swift Swift Set 按下标访问 doorxp 发表于2017-03-02 浏览4485 评论0 let mySet: Set = ["a", "b", "c", "d"] mySet[advance(mySet.startIndex, 2)] // -> something from the setAs of Xcode7 beta6/Swift2.0:let&