diff options
author | dkf <dkf@noemail.net> | 2008-06-29 22:28:20 (GMT) |
---|---|---|
committer | dkf <dkf@noemail.net> | 2008-06-29 22:28:20 (GMT) |
commit | adcd29a09f2c6293ad9fb257b2c95b2e189853ec (patch) | |
tree | cdb9d2219449fc94b2623bab245f0b0cdcf45c52 /doc/lset.n | |
parent | 49a8366e138b96915cb26c0d810bfaf9a868810b (diff) | |
download | tcl-adcd29a09f2c6293ad9fb257b2c95b2e189853ec.zip tcl-adcd29a09f2c6293ad9fb257b2c95b2e189853ec.tar.gz tcl-adcd29a09f2c6293ad9fb257b2c95b2e189853ec.tar.bz2 |
Prepare Tcl's docs for life as 8.6 (remove out of date change bars, fix
typedefs, add a few missing bits)
FossilOrigin-Name: 29df58df24d30f1fa853980095d4e8573cf89bef
Diffstat (limited to 'doc/lset.n')
-rwxr-xr-x | doc/lset.n | 9 |
1 files changed, 2 insertions, 7 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.15 2008/03/26 09:59:22 dkf Exp $ +'\" RCS: @(#) $Id: lset.n,v 1.16 2008/06/29 22:28:24 dkf Exp $ '\" .so man.macros .TH lset n 8.4 Tcl "Tcl Built-In Commands" @@ -52,11 +52,9 @@ command. If \fIindex\fR is negative or greater than or equal to the number of elements in \fI$varName\fR, then an error occurs. .PP -.VS 8.5 The interpretation of each simple \fIindex\fR value is the same as for the command \fBstring index\fR, supporting simple index arithmetic and indices relative to the end of the list. -.VE 8.5 .PP If additional \fIindex\fR arguments are supplied, then each argument is used in turn to address an element within a sublist designated @@ -77,6 +75,7 @@ argument must be strictly less than the length of the corresponding list. In other words, the \fBlset\fR command cannot change the size of a list. If an index is outside the permitted range, an error is reported. .SH EXAMPLES +.PP In each of these examples, the initial value of \fIx\fR is: .CS set x [list [list a b c] [list d e f] [list g h i]] @@ -121,10 +120,6 @@ The indicated return value also becomes the new value of \fIx\fR. .SH "SEE ALSO" list(n), lappend(n), lindex(n), linsert(n), llength(n), lsearch(n), lsort(n), lrange(n), lreplace(n), -.VS 8.5 string(n) -.VE - - .SH KEYWORDS element, index, list, replace, set |