Revert "Remove {Dictionary,Set,UnsafeMutableBufferPointer,UnsafeBufferPointer}.count"

This reverts commit r28248 while we discuss the change.

Swift SVN r28291
This commit is contained in:
Dmitri Hrybenko
2015-05-07 21:45:28 +00:00
parent 4461d97a49
commit 10ab07ade5
21 changed files with 316 additions and 315 deletions

View File

@@ -359,9 +359,9 @@ func makeQSortKiller(len: Int) -> [Int] {
func Compare(x: Int, y : Int) -> Bool {
if keys[x] == nil && keys[y] == nil {
if (x == candidate) {
keys[x] = keys.count()
keys[x] = keys.count
} else {
keys[y] = keys.count()
keys[y] = keys.count
}
}
if keys[x] == nil {