The syntax for retrieving all keys in dict is
[dict keys $dictname]
Example:
set thicknesses [dict create t1 0.1 t2 0.2 t3 0.25] set keys [dict keys $thicknesses] puts $keys
Result:
t1 t2 t3
Jan 4, 2022 | tcl | 0 comments
The syntax for retrieving all keys in dict is
[dict keys $dictname]
Example:
set thicknesses [dict create t1 0.1 t2 0.2 t3 0.25] set keys [dict keys $thicknesses] puts $keys
Result:
t1 t2 t3
Subscribe now to keep reading and get access to the full archive.
Recent Comments