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 af11003 commit 2be564aCopy full SHA for 2be564a
src/avl.jl
@@ -29,6 +29,16 @@ end
29
30
AbstractTrees.nodevalue(node::AVLNode) = node.value
31
32
+AbstractTrees.NodeType(::Type{<:AVLNode}) = HasNodeType()
33
+AbstractTrees.nodetype(T::Type{<:AVLNode}) = T
34
+
35
+function AbstractTrees.printnode(io::IO, node::AVLNode)
36
+ ioctx = IOContext(io, :compact => true, :limit => true)
37
+ show(ioctx, node.key)
38
+ print(ioctx, " => ")
39
+ show(ioctx, node.value)
40
+end
41
42
# ---------
43
# AVL TREE
44
0 commit comments