In Python, I can write something like:
my_list = [4, 7, "test"] a, b, c = my_list
After that, a is 4 , b is 7 , and c is "test" due to the unpack operation on the last line. Can I do something like the last line in Tcl? To make this clearer, I need something like this:
set my_list {4 7 test} setfromlist $mylist abc
(Ie setfromlist will be the team I'm looking for.)
source share