The syntax for inserting list items at specific index is
linsert listname index value1 value2..valuen
Example:
set var {orange blue red green} set var [linsert $var 3 black white] puts $var
Jan 4, 2022 | tcl | 0 comments
The syntax for inserting list items at specific index is
linsert listname index value1 value2..valuen
Example:
set var {orange blue red green} set var [linsert $var 3 black white] puts $var
Subscribe now to keep reading and get access to the full archive.
Recent Comments