To append data to an existing value Tcl provides the dict lappend
command. The syntax is as follows:
dict lappend name key value…
In the following example, we will create a dictionary containing a collection of key/value pairs and then using the dict lappend
command we will append items to the key referenced. Return values from the commands are provided for clarity. Enter the following command:
% set test [dict create 1 1 2 2 3 3]
1 1 2 2 3 3
% dict lappend test 2 more
1 1 2 {2 more} 3 3
13.58.50.156