If you just need the content, you can put $ listvar and it will print the contents as a string.
You can flatten the list one level or insert a delimiter character using join as the jk answer above.
Example:
% set a { 1 2 3 4 { 5 6 { 7 8 9 } } 10 } 1 2 3 4 { 5 6 { 7 8 9 } } 10 % puts $a 1 2 3 4 { 5 6 { 7 8 9 } } 10 % join $a "," 1,2,3,4, 5 6 { 7 8 9 } ,10 % join $a 1 2 3 4 5 6 { 7 8 9 } 10
Michael mathews
source share