Remove Range<Index> argument from Collection.partition()

collection.partition(i..<j) => collection[i..<j].partition()
This commit is contained in:
Dmitri Gribenko
2015-11-12 20:54:45 -08:00
committed by Max Moiseev
parent eefada1c97
commit 5b728dc859
6 changed files with 57 additions and 93 deletions

View File

@@ -151,7 +151,7 @@ Algorithm.test("invalidOrderings") {
withInvalidOrderings {
var a: A<Int>
a = randomArray()
a.partition(a.indices, isOrderedBefore: $0)
a.partition($0)
}
/*
// FIXME: Disabled due to <rdar://problem/17734737> Unimplemented: