Name

keylset

keylset listvar key value...

Set the value associated with key to value in the keyed list contained in variable listvar. If listvar does not exist, it is created. If key is not currently in the list, it is added. If it already exists, value replaces the existing value. Multiple keywords and values may be specified if desired.

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.