Code Select
(data-type (tree data children))
If the data is an integer, then an example of a node containing 2 leaf nodes is this:
Code Select
(tree 0 ((tree 1 ()) (tree 2 ())))
Also, I do not want this to be a solution involving creating a context for every object, because I want to be able to refer to these things anonymously and in general that's not a very elegant solution as it requires that you have a naming scheme for your context symbols (like tree1, tree2, etc...).
Any help is much appreciated!