mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
improve stdlib hygiene a bit.
Swift SVN r28392
This commit is contained in:
@@ -21,7 +21,7 @@
|
||||
//
|
||||
|
||||
func _toNSArray<T, U : AnyObject>(a: [T], @noescape f: (T) -> U) -> NSArray {
|
||||
var result = NSMutableArray(capacity: a.count)
|
||||
let result = NSMutableArray(capacity: a.count)
|
||||
for s in a {
|
||||
result.addObject(f(s))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user