Version 5 of Tree

Updated 2003-03-18 11:53:00

Documentation 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.


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:

  • graphical representation of tree data
  • a "tree widget", often for filesystem data, including in particular the TkTreeCtrl widget, BWidget's Tree widget, and the pure-Python TreeWidget [L1 ] for Tkinter.

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