summaryrefslogtreecommitdiffstats
path: root/doc/apply.n
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2007-11-01 23:36:46 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2007-11-01 23:36:46 (GMT)
commitc7d4f0143c9004a2ad087ba1faf97eaec526c3e2 (patch)
treeb14613647bccdf8360da6c3a755b0ab6d29b5279 /doc/apply.n
parent8700b04b46fb89254c0ce1489142dd0a7bf68702 (diff)
downloadtcl-c7d4f0143c9004a2ad087ba1faf97eaec526c3e2.zip
tcl-c7d4f0143c9004a2ad087ba1faf97eaec526c3e2.tar.gz
tcl-c7d4f0143c9004a2ad087ba1faf97eaec526c3e2.tar.bz2
Minor documentation improvements
Diffstat (limited to 'doc/apply.n')
-rw-r--r--doc/apply.n4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/apply.n b/doc/apply.n
index bcdf6bd..8a38aac 100644
--- a/doc/apply.n
+++ b/doc/apply.n
@@ -74,9 +74,9 @@ proc map {lambda list} {
return $result
}
map {x {return [string length $x]:$x}} {a bb ccc dddd}
- \fI=> 1:a 2:bb 3:ccc 4:dddd\fR
+ \fI\(-> 1:a 2:bb 3:ccc 4:dddd\fR
map {x {expr {$x**2 + 3*$x - 2}}} {-4 -3 -2 -1 0 1 2 3 4}
- \fI=> 2 -2 -4 -4 -2 2 8 16 26\fR
+ \fI\(-> 2 -2 -4 -4 -2 2 8 16 26\fR
.CE
.PP
The \fBapply\fR command is also useful for defining callbacks for use in the