summaryrefslogtreecommitdiffstats
path: root/doc/lreplace.n
diff options
context:
space:
mode:
authorhobbs <hobbs>2000-01-21 02:25:05 (GMT)
committerhobbs <hobbs>2000-01-21 02:25:05 (GMT)
commitdf89ccaf7788364be35910a9f84ba16a854d1643 (patch)
tree94a0577c57166ce7dc22c55e6e2f9d67f27c271c /doc/lreplace.n
parentc03cc4dde2bd4373ddb6a9d3e04ff3172a16ba33 (diff)
downloadtcl-df89ccaf7788364be35910a9f84ba16a854d1643.zip
tcl-df89ccaf7788364be35910a9f84ba16a854d1643.tar.gz
tcl-df89ccaf7788364be35910a9f84ba16a854d1643.tar.bz2
* doc/tclvars.n: added definitions for tcl_(non)wordchars
* doc/vwait.n: added notes about requirement for vwait var being globally scoped [Bug: 3329]
Diffstat (limited to 'doc/lreplace.n')
-rw-r--r--doc/lreplace.n13
1 files changed, 7 insertions, 6 deletions
diff --git a/doc/lreplace.n b/doc/lreplace.n
index 9977a90..bc5d20a 100644
--- a/doc/lreplace.n
+++ b/doc/lreplace.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: lreplace.n,v 1.2 1998/09/14 18:39:53 stanton Exp $
+'\" RCS: @(#) $Id: lreplace.n,v 1.3 2000/01/21 02:25:05 hobbs Exp $
'\"
.so man.macros
.TH lreplace n 7.4 Tcl "Tcl Built-In Commands"
@@ -19,18 +19,19 @@ lreplace \- Replace elements in a list with new elements
.SH DESCRIPTION
.PP
-\fBLreplace\fR returns a new list formed by replacing one or more elements of
+\fBlreplace\fR returns a new list formed by replacing one or more elements of
\fIlist\fR with the \fIelement\fR arguments.
-\fIFirst\fR gives the index in \fIlist\fR of the first element
+\fIfirst\fR gives the index in \fIlist\fR of the first element
to be replaced (0 refers to the first element).
If \fIfirst\fR is less than zero then it refers to the first
element of \fIlist\fR; the element indicated by \fIfirst\fR
must exist in the list.
-\fILast\fR gives the index in \fIlist\fR of the last element
-to be replaced.
+\fIlast\fR gives the index in \fIlist\fR of the last element
+to be replaced. If it is less than zero but greater than \fIfirst\fR,
+then any specified elements will be prepended to the list.
If \fIlast\fR is less than \fIfirst\fR then no elements are deleted;
the new elements are simply inserted before \fIfirst\fR.
-\fIFirst\fR or \fIlast\fR may be \fBend\fR
+\fIfirst\fR or \fIlast\fR may be \fBend\fR
(or any abbreviation of it) to refer to the last element of the list.
The \fIelement\fR arguments specify zero or more new arguments to
be added to the list in place of those that were deleted.