diff options
author | dkf <dkf@noemail.net> | 2007-10-25 09:25:27 (GMT) |
---|---|---|
committer | dkf <dkf@noemail.net> | 2007-10-25 09:25:27 (GMT) |
commit | 375156f61693b3605e1cd93e521522e8777dc729 (patch) | |
tree | a55358a428b5851b24d6a6406ae63dc80f3b016d /doc/array.n | |
parent | b3f3af427eb25eb6bd06159e5edf122ad2c9f04d (diff) | |
download | tcl-375156f61693b3605e1cd93e521522e8777dc729.zip tcl-375156f61693b3605e1cd93e521522e8777dc729.tar.gz tcl-375156f61693b3605e1cd93e521522e8777dc729.tar.bz2 |
GOOBE for command results in examples
FossilOrigin-Name: 8e13f07dcd8199fc06c8eb559ea992948450c564
Diffstat (limited to 'doc/array.n')
-rw-r--r-- | doc/array.n | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/array.n b/doc/array.n index 7857615..8c930ba 100644 --- a/doc/array.n +++ b/doc/array.n @@ -5,7 +5,7 @@ '\" See the file "license.terms" for information on usage and redistribution '\" of this file, and for a DISCLAIMER OF ALL WARRANTIES. '\" -'\" RCS: @(#) $Id: array.n,v 1.16 2007/10/24 14:29:38 dkf Exp $ +'\" RCS: @(#) $Id: array.n,v 1.17 2007/10/25 09:25:27 dkf Exp $ '\" .so man.macros .TH array n 8.3 Tcl "Tcl Built-In Commands" @@ -148,7 +148,7 @@ The command always returns an empty string. foreach {color count} [\fBarray get\fR colorcount] { puts "Color: $color Count: $count" } - => Color: blue Count: 4 + \(-> Color: blue Count: 4 Color: white Count: 9 Color: green Count: 5 Color: red Count: 1 @@ -156,7 +156,7 @@ foreach {color count} [\fBarray get\fR colorcount] { foreach color [\fBarray names\fR colorcount] { puts "Color: $color Count: $colorcount($color)" } - => Color: blue Count: 4 + \(-> Color: blue Count: 4 Color: white Count: 9 Color: green Count: 5 Color: red Count: 1 @@ -164,13 +164,13 @@ foreach color [\fBarray names\fR colorcount] { foreach color [lsort [\fBarray names\fR colorcount]] { puts "Color: $color Count: $colorcount($color)" } - => Color: blue Count: 4 + \(-> Color: blue Count: 4 Color: green Count: 5 Color: red Count: 1 Color: white Count: 9 \fBarray statistics\fR colorcount - => 4 entries in table, 4 buckets + \(-> 4 entries in table, 4 buckets number of buckets with 0 entries: 1 number of buckets with 1 entries: 2 number of buckets with 2 entries: 1 |