doorxp-blog

doorxp.com

Swift Set 按下标访问

let mySet: Set = ["a", "b", "c", "d"] mySet[advance(mySet.startIndex, 2)] // -> something from the setAs of Xcode7 beta6/Swift2.0:let&

Powered By Z-BlogPHP 1.5.1 Zero

Copyright doorxp.com Rights Reserved.