Version 9 of Tree

Updated 2003-11-20 18:26:49

Tcllib contains a tree data structure.

Documentation for it can be found at http://tcllib.sourceforge.net/doc/tree.html .

This module of the tcllib data structures collection provides the data structure portion of a tree structure.

Also, BWidget has a Tree widget. (See Tree nodes in motion - starDom).


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


For a lightweight approach, see Trees as nested lists.


Related topics:


[ Arts and Crafts of Tcl-Tk Programming | Category Command, package tcllib, module struct | Category Data Structure | ]