A dictionary iteration for printing keys and values of the dictionary is
set thicknesses [dict create t1 0.1 t2 0.2 t3 0.25] foreach item [dict keys $thicknesses] { set value [dict get $thicknesses $item] puts $value }
Result:
0.1 0.2 0.25
Jan 4, 2022 | tcl | 0 comments
A dictionary iteration for printing keys and values of the dictionary is
set thicknesses [dict create t1 0.1 t2 0.2 t3 0.25] foreach item [dict keys $thicknesses] { set value [dict get $thicknesses $item] puts $value }
Result:
0.1 0.2 0.25
Subscribe now to keep reading and get access to the full archive.
Recent Comments