Remove Array.count, it is redundant with protocol extensions

Swift SVN r28247
This commit is contained in:
Dmitri Hrybenko
2015-05-07 00:30:41 +00:00
parent c109ec9125
commit 58601fafc8
37 changed files with 169 additions and 185 deletions

View File

@@ -342,7 +342,7 @@ extension SequenceType {
// optimized to a memcpy() sometimes. Those cases are usually collections,
// though.
var result = Array(self)
let count = result.count
let count = result.count()
for i in 0..<count/2 {
swap(&result[i], &result[count - i - 1])
}