sumit
5/27/2019 - 7:43 AM

enumerate

var arr = [1,2,3,4,5,6,7]
for (idx, col) in arr.enumerated() 
{
    print(idx)
    print(col)
}