[Swift]enumerate
enumerate
var values:[[AnyObject]] = [] for (index:Int,list:[AnyObject]) in enumerate(self.values) { for var i=0;i<list.count;i+=3 { //処理 } }
enumerate
var values:[[AnyObject]] = [] for (index:Int,list:[AnyObject]) in enumerate(self.values) { for var i=0;i<list.count;i+=3 { //処理 } }