Collection.count => .length

And other API changes that naturally fall out from this, like
Array(repeating:count:) => Array(repeating:length:).
This commit is contained in:
Dmitri Gribenko
2015-11-09 17:49:12 -08:00
committed by Max Moiseev
parent 824088a07d
commit 73ce9ae7e9
188 changed files with 2075 additions and 2046 deletions

View File

@@ -144,7 +144,7 @@ tests.test("${Self}/Basics") {
// Check that we can round-trip the string representation of 2^100,
// which requires an exponent to express...
let large =
Repeat(repeating: 1024 as ${Self}, count: 10).reduce(1, combine: *)
Repeat(repeating: 1024 as ${Self}, length: 10).reduce(1, combine: *)
let largeText = String(large)
expectEqual(largeText, String(${Self}(largeText)!))