标签:
let oldArray = [1,2,3,4,5,6,7,8,9,10] let newArray = oldArray.filter({$0 >= 4}) NSLog("%@", newArray)
闭合和半闭合区间
for index in 1...5 { NSLog("------%d", index); } for index in 1..<5 { NSLog("------%d", index); }
标签:
原文地址:http://www.cnblogs.com/dongfengyu/p/5191048.html