Name

lvarpop

lvarpop var [indexExpr] [string]

Remove the element of the list contained in var having index indexExpr (default 0). If string is given, the deleted element is replaced with the string. Returns the replaced or deleted item.

Indices start at 0, and the words end and len can be used at the beginning of the expression to indicate the index of the last element and length of the list, respectively.

Get Tcl/Tk in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.