SyntaxFix
Write A Post
Hire A Developer
Questions
Starting with Swift 2, the enumerate function needs to be called on the collection like so:
for (index, element) in list.enumerate() { print("Item \(index): \(element)") }