let mySet: Set = ["a", "b", "c", "d"] mySet[advance(mySet.startIndex, 2)] // -> something from the set
As of Xcode7 beta6/Swift2.0:
let mySet: Set = ["a", "b", "c", "d"] mySet[mySet.startIndex.advancedBy(2)] // -> something from the set.
let mySet: Set = ["a", "b", "c", "d"] mySet[mySet.index(mySet.startIndex, offsetBy: 2)] // -> will print "d" as it advances by 2