URL
https://opencores.org/ocsvn/or1k/or1k/trunk
[/] [or1k/] [trunk/] [insight/] [tcl/] [doc/] [lreplace.n] - Blame information for rev 578
Go to most recent revision |
Details |
Compare with Previous |
View Log
Line No. |
Rev |
Author |
Line |
1 |
578 |
markom |
'\"
|
2 |
|
|
'\" Copyright (c) 1993 The Regents of the University of California.
|
3 |
|
|
'\" Copyright (c) 1994-1996 Sun Microsystems, Inc.
|
4 |
|
|
'\"
|
5 |
|
|
'\" See the file "license.terms" for information on usage and redistribution
|
6 |
|
|
'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.
|
7 |
|
|
'\"
|
8 |
|
|
'\" RCS: @(#) $Id: lreplace.n,v 1.1.1.1 2002-01-16 10:25:24 markom Exp $
|
9 |
|
|
'\"
|
10 |
|
|
.so man.macros
|
11 |
|
|
.TH lreplace n 7.4 Tcl "Tcl Built-In Commands"
|
12 |
|
|
.BS
|
13 |
|
|
'\" Note: do not modify the .SH NAME line immediately below!
|
14 |
|
|
.SH NAME
|
15 |
|
|
lreplace \- Replace elements in a list with new elements
|
16 |
|
|
.SH SYNOPSIS
|
17 |
|
|
\fBlreplace \fIlist first last \fR?\fIelement element ...\fR?
|
18 |
|
|
.BE
|
19 |
|
|
|
20 |
|
|
.SH DESCRIPTION
|
21 |
|
|
.PP
|
22 |
|
|
\fBLreplace\fR returns a new list formed by replacing one or more elements of
|
23 |
|
|
\fIlist\fR with the \fIelement\fR arguments.
|
24 |
|
|
\fIFirst\fR gives the index in \fIlist\fR of the first element
|
25 |
|
|
to be replaced (0 refers to the first element).
|
26 |
|
|
If \fIfirst\fR is less than zero then it refers to the first
|
27 |
|
|
element of \fIlist\fR; the element indicated by \fIfirst\fR
|
28 |
|
|
must exist in the list.
|
29 |
|
|
\fILast\fR gives the index in \fIlist\fR of the last element
|
30 |
|
|
to be replaced.
|
31 |
|
|
If \fIlast\fR is less than \fIfirst\fR then no elements are deleted;
|
32 |
|
|
the new elements are simply inserted before \fIfirst\fR.
|
33 |
|
|
\fIFirst\fR or \fIlast\fR may be \fBend\fR
|
34 |
|
|
(or any abbreviation of it) to refer to the last element of the list.
|
35 |
|
|
The \fIelement\fR arguments specify zero or more new arguments to
|
36 |
|
|
be added to the list in place of those that were deleted.
|
37 |
|
|
Each \fIelement\fR argument will become a separate element of
|
38 |
|
|
the list.
|
39 |
|
|
If no \fIelement\fR arguments are specified, then the elements
|
40 |
|
|
between \fIfirst\fR and \fIlast\fR are simply deleted.
|
41 |
|
|
|
42 |
|
|
.SH KEYWORDS
|
43 |
|
|
element, list, replace
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.