The syntax for setting list item at a specific index is
lset listname index value
Example:
set var {white blue red green} lset var 0 black puts $var
Result:
black blue red green
Jan 4, 2022 | tcl | 0 comments
The syntax for setting list item at a specific index is
lset listname index value
Example:
set var {white blue red green} lset var 0 black puts $var
Result:
black blue red green
Subscribe now to keep reading and get access to the full archive.
Recent Comments