ListVariable | The input list from which to take elements and surround. Can be either a value or @VarName (will upvar and read/write). |
String | What to surround each list element with. |
This is how to surround each list element with double stars.
% set MyList [list first second third]
first second third
% SurroundEach $MyList "**"
**first** **second** **third**
% set MyList [list first second third]
first second third
% SurroundEach @MyList "**"
**first** **second** **third**
% puts $MyList
**first** **second** **third**