You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I want to create a tree type with parameter:
@data Tree{T} begin
Empty
Leaf(T)
Node(T, Tree{T}, Tree{T})
end
And then create a tree: Tree.Node(5, Tree.Leaf(3), Tree.Empty())
but I can't get this working, the empty tree is of another type than the integer tree. How would I instantiate a Tree.Empty() which is compatible with Tree.Leaf(3). I am thinking I might be be missing some syntax but can't find examples in the documentation.
I'm using Moshi v0.3.5 and Julia v1.11.1
The text was updated successfully, but these errors were encountered:
Hello,
I want to create a tree type with parameter:
And then create a tree:
Tree.Node(5, Tree.Leaf(3), Tree.Empty())
but I can't get this working, the empty tree is of another type than the integer tree. How would I instantiate a Tree.Empty() which is compatible with Tree.Leaf(3). I am thinking I might be be missing some syntax but can't find examples in the documentation.
I'm using Moshi v0.3.5 and Julia v1.11.1
The text was updated successfully, but these errors were encountered: