for index in 1..10 { index }
这样在swift中编译不通过
Playground execution failed: <EXPR>:14:15: error: use of unresolved identifier '..'
for index in 1..10
^
<EXPR>:14:15: error: operator is not a known binary operator
for index in 1..10
for index in 1..10 { index }
这样在swift中编译不通过
Playground execution failed: <EXPR>:14:15: error: use of unresolved identifier '..'
for index in 1..10
^
<EXPR>:14:15: error: operator is not a known binary operator
for index in 1..10
2014-10-23
举报