deep dict

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.

Implementations

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

Description

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.