Y
Hacker News
new
|
ask
|
show
|
jobs
by
NobodyNada
2459 days ago
Iterator-style loops are much clearer and more concise in almost all cases. In this case you can iterate over a range:
for i in 0..<10 { print(i) }