Tcl list operation : lappend & linsert

To add new element to tcl list there are 2 command linsert and lappend.

Lappend is command to append new elements to the end of variable containing list.

Linsert is command to return new list with new elements inserted before index of passed to the command.

Some examples :

Linsert example using various index parameter, there is index named end too.

Good evening…

Leave a Reply

Your email address will not be published. Required fields are marked *