PrintDict — Print the contents of dict on the screen.
SYNOPSIS
PrintDictDictValue?IndentationSpaces?
DESCRIPTION
Return Value
None
Arguments
DictValue
Dict value to print out.
IndentationSpaces
Used internally. This is based on the max key length at the current level.
More Info
The keys will be right aligned with the longest key. When there is a nested dict, the key is in the normal position and the value begins the next line down, indented to the value column. No effort is made to make all nested dicts align.
The following is sample output:
one uno
two dos
three
111 one
222 two
333 three
444
a 1
b 2
c 3
555
x 9
y 8
z 7
For information regarding exceptions / errors, see here.
EXAMPLES
% set MyDict [dict create one uno two dos] % PrintDict $MyDict one uno two dos