I want to print the contents of an array in Tcl (for debugging). The order is unimportant, I just want every value printed.
How do I do it?
I want to print the contents of an array in Tcl (for debugging). The order is unimportant, I just want every value printed.
How do I do it?
The simplest way would be to use
parray
:If you want just the key and the value, well, use a loop and
array get
: