A canonical structural string for a tree: "*" for a leaf, "NULL" for an
empty node, and "list(...)" for list nodes.
Arguments
- tree
(
RTree)
A tree as returned bybuild_tree().
Examples
tree_repr(build_tree(list(a = 1, b = list(2, NULL))))
#> [1] "list<named>(a = *, b = list(*, NULL))"