set table [dict create cells state bits state]
set data [dict create 1 "s" 1 "f"]
puts $table
puts $data
puts out:
cells state bits state
1 f
This is quite weird! why doesn't dict create make a full dictionary on 1 s 1 f ? thanks!
ps documentation says:
dict create ?key value ...?
Return a new dictionary that contains each of the key/value mappings listed as arguments (keys and values alternating, with each key being followed by its associated value.) https://www.tcl.tk/man/tcl/TclCmd/dict.htm#M6
Post Post Script: I found that putting any two keys that are the same does the same thing such as:
puts [dict create 2 "s" 2 "f"]
2 f