for_array_keys

This command is part of the TclX package.

for_array_keys var arrayName code

Evaluate code for each key in the array called arrayName, setting var to the key for each time through. The break and continue commands have their normal effect for loops.

See also dict for.