Skip to content

Commit 1b24cac

Browse files
committed
Prefer Array over ContiguousArray
1 parent b45bc76 commit 1b24cac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/Algorithms/Partition.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,8 +248,8 @@ extension Sequence {
248248
internal func _partitioned(
249249
_ belongsInSecondCollection: (Element) throws -> Bool
250250
) rethrows -> ([Element], [Element]) {
251-
var lhs = ContiguousArray<Element>()
252-
var rhs = ContiguousArray<Element>()
251+
var lhs = Array<Element>()
252+
var rhs = Array<Element>()
253253

254254
for element in self {
255255
if try belongsInSecondCollection(element) {

0 commit comments

Comments
 (0)