mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Switch range operators ".." and "...".
- 1..3 now means 1,2 - 1...3 now means 1,2,3 Implements <rdar://problem/16839891> Swift SVN r18066
This commit is contained in:
@@ -30,7 +30,7 @@ extension NSArray {
|
||||
var length: Int = count
|
||||
var result = T[]()
|
||||
result.reserve(length)
|
||||
for i in 0...length {
|
||||
for i in 0..length {
|
||||
result.append(body(objectAtIndex(i)))
|
||||
}
|
||||
return result
|
||||
|
||||
Reference in New Issue
Block a user