We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4232e52 commit 3581bb0Copy full SHA for 3581bb0
README.markdown
@@ -360,8 +360,8 @@ for _ in 0..<3 {
360
println("Hello three times")
361
}
362
363
-for person in attendeeList {
364
- // do something
+for (index, person) in enumerate(attendeeList) {
+ println("\(person) is at position #\(index)")
365
366
```
367
@@ -373,7 +373,7 @@ for var i = 0; i < 3; i++ {
373
374
for var i = 0; i < attendeeList.count; i++ {
375
let person = attendeeList[i]
376
+ println("\(person) is at position #\(i)")
377
378
379
0 commit comments