Tcllib struct tree provides a tree data structure.
This module of the tcllib data structures collection provides the data structure portion of a tree structure.
The tcllib Tree would be more useful if nodes could be arbitrary objects (specifically, if they could be incr Tcl objects).
To that end, I made some mods which string map {:: @} in the creation of namespace data arrays. Worth adding to the mainline? CMCc