swift for loop index

Swift
for (index, object) in list.enumerated() {
  print("Item at \(index): \(object)")
}
Source

Also in Swift: