#141 Deleting the last element from a list in a variable in tcl

set var {a b c d e}
set var [lreplace $var end end]

.
.
.
.
.
.
.
.
.
.

Discover more from Tips and Hints for Aerospace Engineers

Subscribe now to keep reading and get access to the full archive.

Continue reading