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 6eb7d9a commit 3fc54e6Copy full SHA for 3fc54e6
Threaded Binary Tree/ThreadedBinaryTree.playground/Sources/ThreadedBinaryTree.swift
@@ -120,7 +120,7 @@ extension ThreadedBinaryTree {
120
121
Performance: runs in O(h) time, where h is the height of the tree.
122
*/
123
- public func remove(_ value: T) -> ThreadedBinaryTree? {
+ @discardableResult public func remove(_ value: T) -> ThreadedBinaryTree? {
124
return search(value)?.remove()
125
}
126
0 commit comments