Treating each argument as a list, concatenate all arguments and return the resulting list.
The syntax is
[concat $list1 $list2]
Example:
set list1 {a b c} set list2 {1 2 3} puts [concat $list1 $list2]
Result:
a b c 1 2 3
Jan 5, 2022 | tcl | 0 comments
Treating each argument as a list, concatenate all arguments and return the resulting list.
The syntax is
[concat $list1 $list2]
Example:
set list1 {a b c} set list2 {1 2 3} puts [concat $list1 $list2]
Result:
a b c 1 2 3
Subscribe now to keep reading and get access to the full archive.
Recent Comments