Name

for_array_keys

for_array_keys var array_name code

Perform a foreach -style loop for each key in the array array_name.

Example

for_array_keys key tcl_platform {
        echo $key => $tcl_platform($key)
    }

Get Tcl/Tk in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.