summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2018-04-20 16:55:30 (GMT)
committerdgp <dgp@users.sourceforge.net>2018-04-20 16:55:30 (GMT)
commit751fe9de93be33eda7b7e4d3a8efe71e4c27d84c (patch)
tree0832e8859a0a54ceb072d2b3a2b606f310d3638e /doc
parent0569fc46c844408dcdfbdeda711a3395967cb412 (diff)
parent24d501cb0d97f44e1df34cd4b0a4e51e7d830666 (diff)
downloadtcl-751fe9de93be33eda7b7e4d3a8efe71e4c27d84c.zip
tcl-751fe9de93be33eda7b7e4d3a8efe71e4c27d84c.tar.gz
tcl-751fe9de93be33eda7b7e4d3a8efe71e4c27d84c.tar.bz2
merge 8.7
Diffstat (limited to 'doc')
-rw-r--r--doc/array.n9
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/array.n b/doc/array.n
index 25ad0c6..d6d4dff 100644
--- a/doc/array.n
+++ b/doc/array.n
@@ -47,6 +47,15 @@ been the return value from a previous invocation of
Returns 1 if \fIarrayName\fR is an array variable, 0 if there
is no variable by that name or if it is a scalar variable.
.TP
+\fBarray for {\fIkeyVariable valueVariable\fB} \fIarrayName body\fP
+The first argument is a two element list of variable names for the
+key and value of each entry in the array. The second argument is the
+array name to iterate over. The third argument is the body to execute
+for each key and value returned.
+The ordering of the returned keys is undefined.
+If an array element is deleted or a new array element is inserted during
+the \fIarray for\fP process, the command will terminate with an error.
+.TP
\fBarray get \fIarrayName\fR ?\fIpattern\fR?
Returns a list containing pairs of elements. The first
element in each pair is the name of an element in \fIarrayName\fR