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
Last Updated on 2022-01-04 by gantovnik
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
Last Updated on 2022-01-04 by gantovnik
Subscribe now to keep reading and get access to the full archive.
Recent Comments