Revert "Remove Array.count, it is redundant with protocol extensions"

This reverts commit r28247 while we discuss the change.

Swift SVN r28292
This commit is contained in:
Dmitri Hrybenko
2015-05-07 21:45:30 +00:00
parent 10ab07ade5
commit 8b392eeea9
37 changed files with 184 additions and 168 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])
}