Skip to content

Commit 8165c59

Browse files
committed
Refactor SortedArray.filter slightly
1 parent f0511e9 commit 8165c59

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Sources/SortedArray.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ extension SortedArray: RandomAccessCollection {
9999
}
100100

101101
public func filter(_ isIncluded: (Element) throws -> Bool) rethrows -> SortedArray<Element> {
102-
let newElements: [Element] = try filter(isIncluded)
102+
let newElements = try _elements.filter(isIncluded)
103103
return SortedArray(sorted: newElements, areInIncreasingOrder: areInIncreasingOrder)
104104
}
105105
}

0 commit comments

Comments
 (0)