URL
https://opencores.org/ocsvn/or1k_old/or1k_old/trunk
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: lindex.n,v 1.1.1.1 2002-01-16 10:25:24 markom Exp $
|
9 |
|
|
'\"
|
10 |
|
|
.so man.macros
|
11 |
|
|
.TH lindex 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 |
|
|
lindex \- Retrieve an element from a list
|
16 |
|
|
.SH SYNOPSIS
|
17 |
|
|
\fBlindex \fIlist index\fR
|
18 |
|
|
.BE
|
19 |
|
|
|
20 |
|
|
.SH DESCRIPTION
|
21 |
|
|
.PP
|
22 |
|
|
This command treats \fIlist\fR as a Tcl list and returns the
|
23 |
|
|
\fIindex\fR'th element from it (0 refers to the first element of the list).
|
24 |
|
|
In extracting the element, \fIlindex\fR observes the same rules
|
25 |
|
|
concerning braces and quotes and backslashes as the Tcl command
|
26 |
|
|
interpreter; however, variable
|
27 |
|
|
substitution and command substitution do not occur.
|
28 |
|
|
If \fIindex\fR is negative or greater than or equal to the number
|
29 |
|
|
of elements in \fIvalue\fR, then an empty
|
30 |
|
|
string is returned.
|
31 |
|
|
If \fIindex\fR has the value \fBend\fR, it refers to the last element
|
32 |
|
|
in the list.
|
33 |
|
|
|
34 |
|
|
.SH KEYWORDS
|
35 |
|
|
element, index, list
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.