an attempt to create a for loop in swift leads to two errors:
expected
Braced block of statements is an unused closure
code to play:
for i in 0..< numberOfEuropeCities { } an attempt to create a for loop in swift leads to two errors:
expected
Braced block of statements is an unused closure
code to play:
for i in 0..< numberOfEuropeCities { } It seems that this question does not correspond to the subject of the site. Those who voted to close it indicated the following reasons:
there is either no space
for i in 0..<numberOfEuropeCities { either be on both sides
for i in 0 ..< numberOfEuropeCities { Problem solved!
My error disappeared when I added a space:
for i in 0 ..< numberOfEuropeCities Source: https://ru.stackoverflow.com/questions/526441/
All Articles