Comparison of programming languages (associative array): Difference between revisions

Content deleted Content added
m retrive retrieve
Line 962:
</source>
 
The first argument of the <code>set</code> command has to be enclosed by double quotes when it contains an explicit space (even if the space is enclosed in an array parenthesis), because space is used to separate arguments in Tcl. This is not an issue with spaces inserted by substitutonsubstitution however, as the space in <tt>$john</tt>.
 
Alternatively, several array elements can be set in a single command by providing their mappings as a dictionary (keys braced because they contain whitespace):
Line 986:
</source>
 
To retriveretrieve the entire array as a dictionary:
 
<source lang="tcl">