Optimize int loop jumps and document loop var immutability
This commit is contained in:
1 parent
db9dc73da8
commit
637258581d
13 files changed
+569
-110
No files matched your search
@@ -63,6 +63,8 @@ In spite of this you can use ranges in for loops:
|
||||
>>> 3
|
||||
>>> void
|
||||
|
||||
The loop variable is read-only inside the loop body (behaves like a `val`).
|
||||
|
||||
but
|
||||
|
||||
for( i in 1..<3 )
|
||||
|
||||
Reference in new issue
Block a user