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
@@ -739,6 +739,7 @@ See also: [Testing and Assertions](Testing.md)
|
||||
var result = []
|
||||
for( x in iterable ) result += transform(x)
|
||||
}
|
||||
// loop variables are read-only inside the loop body
|
||||
assert( [11, 21, 31] == mapValues( [1,2,3], { it*10+1 }))
|
||||
>>> void
|
||||
|
||||
|
||||
Reference in new issue
Block a user