Version 4 of deep dict

Updated 2020-01-23 16:31:48 by apn

A deep dictionary is a dictionary in which each value is deep list: Each key has the same representation it would have in a standard dict, and each value is either a simple value or a deep dictionary. A simple value is represented as a list containing only one item.

See Also

scripted dict
Scripting a deep dict in a manner similar to scripted list.


ycl dict deep
Provides get, merge, pretty, and set.


Unlike a standard Tcl dictionary, a deep dictionary is suitable for communicating an ordered tree without prior agreement between the parties about the exact shape of the tree. A deep dictionary can be unambiguously merged into another deep dictionary.