diff options
author | jenglish <jenglish@noemail.net> | 2002-07-23 18:17:11 (GMT) |
---|---|---|
committer | jenglish <jenglish@noemail.net> | 2002-07-23 18:17:11 (GMT) |
commit | 23bb29d364ae0b71f3e19ac2e1508e323688379b (patch) | |
tree | d3d2a6a51b834fb2bab5f5363e1e6fb3949932b0 /doc/lset.n | |
parent | c24c60414b7327029253fa051c31e4eaabad8cfb (diff) | |
download | tcl-23bb29d364ae0b71f3e19ac2e1508e323688379b.zip tcl-23bb29d364ae0b71f3e19ac2e1508e323688379b.tar.gz tcl-23bb29d364ae0b71f3e19ac2e1508e323688379b.tar.bz2 |
Man page updates from Larry Virden.
FossilOrigin-Name: 133521463eb0025703968673d5a01a07745fa0c7
Diffstat (limited to 'doc/lset.n')
-rwxr-xr-x | doc/lset.n | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -4,7 +4,7 @@ '\" See the file "license.terms" for information on usage and redistribution '\" of this file, and for a DISCLAIMER OF ALL WARRANTIES. '\" -'\" RCS: @(#) $Id: lset.n,v 1.3 2002/07/01 18:24:39 jenglish Exp $ +'\" RCS: @(#) $Id: lset.n,v 1.4 2002/07/23 18:17:12 jenglish Exp $ '\" .so man.macros .TH lset n 8.4 Tcl "Tcl Built-In Commands" @@ -76,7 +76,8 @@ of a list. If an index is outside the permitted range, an error is reported. .SH EXAMPLES In each of these examples, the initial value of \fIx\fP is: .CS -{a b c} {d e f} {g h i} +set x [list [list a b c] [list d e f] [list g h i]] + => {a b c} {d e f} {g h i} .CE The indicated return value also becomes the new value of \fIx\fP. .CS @@ -92,7 +93,9 @@ lset x {2 3} j .CE In the following examples, the initial value of \fIx\fP is: .CS -{{a b} {c d}} {{e f} {g h}} +set x [list [list [list a b] [list c d]] \e + [list [list e f] [list g h]]] + => {{a b} {c d}} {{e f} {g h}} .CE The indicated return value also becomes the new value of \fIx\fP. .CS @@ -105,4 +108,3 @@ lsort(n), lrange(n), lreplace(n) .SH KEYWORDS element, index, list, replace, set -.VE |