We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 23bf863 commit 379609bCopy full SHA for 379609b
Sources/Algorithms/PartialSort.swift
@@ -53,7 +53,8 @@ extension Collection {
53
if let last = result.last, try areInIncreasingOrder(last, e) {
54
continue
55
}
56
- let insertionIndex = try result.partitioningIndex { try areInIncreasingOrder(e, $0) }
+ let insertionIndex =
57
+ try result.partitioningIndex { try areInIncreasingOrder(e, $0) }
58
result.removeLast()
59
result.insert(e, at: insertionIndex)
60
0 commit comments