Posted to tcl by bairui at Sat Jan 25 14:17:13 GMT 2020view raw

  1. proc A {} {
  2. B salad greens
  3. dict lappend salad greens lettuce chicory kale arugula watercress spinach
  4. puts [dict get $salad greens]
  5. }
  6.  
  7. proc B {var key} {
  8. uplevel 1 [list set $var [dict create $key {}]]
  9. }
  10.