get items inserted into a list?
|
|
A user asked why
linsert $list 0 ..
did not result in .. being inserted into list.
d9jesper@dtek.chalmers.se (Jesper Blommaskog) replied:
When doing list operations other than lappend, you must save the
returned value. This applies to list, lindex, lrange, lreplace at
least.
In this example, you would perhaps want to do something like:
set list [ linsert $list 0 .. ]
|
|
|