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 9858092 commit 123863eCopy full SHA for 123863e
src/avl.jl
@@ -56,7 +56,7 @@ function Base.getindex(tree::AVLTree{K}, key::K) where {K}
56
node.value
57
end
58
59
-function Base.setindex!(tree::AVLTree, value, key)
+function Base.setindex!(tree::AVLTree{K}, value, key::K) where {K}
60
tree.root = _insert!(tree.root, key, value)
61
tree
62
0 commit comments