summaryrefslogtreecommitdiffstats
path: root/doc/lindex.n
diff options
context:
space:
mode:
Diffstat (limited to 'doc/lindex.n')
-rw-r--r--doc/lindex.n26
1 files changed, 12 insertions, 14 deletions
diff --git a/doc/lindex.n b/doc/lindex.n
index f8f1e40..e459a2b 100644
--- a/doc/lindex.n
+++ b/doc/lindex.n
@@ -6,7 +6,7 @@
'\" See the file "license.terms" for information on usage and redistribution
'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.
'\"
-'\" RCS: @(#) $Id: lindex.n,v 1.13 2007/10/25 09:25:27 dkf Exp $
+'\" RCS: @(#) $Id: lindex.n,v 1.14 2007/10/26 20:11:53 dgp Exp $
'\"
.so man.macros
.TH lindex n 8.4 Tcl "Tcl Built-In Commands"
@@ -67,20 +67,17 @@ is synonymous with
lindex [lindex [lindex $a 1] 2] 3
.CE
.SH EXAMPLES
-.PP
-Demonstrating how the index list system works.
.CS
-.ta 5i
-\fBlindex\fR {a b c} \fB\(->\fI a b c\fR
-\fBlindex\fR {a b c} {} \fB\(->\fI a b c\fR
-\fBlindex\fR {a b c} 0 \fB\(->\fI a\fR
-\fBlindex\fR {a b c} 2 \fB\(->\fI c\fR
-\fBlindex\fR {a b c} end \fB\(->\fI c\fR
-\fBlindex\fR {a b c} end-1 \fB\(->\fI b\fR
-\fBlindex\fR {{a b c} {d e f} {g h i}} 2 1 \fB\(->\fI h\fR
-\fBlindex\fR {{a b c} {d e f} {g h i}} {2 1} \fB\(->\fI h\fR
-\fBlindex\fR {{{a b} {c d}} {{e f} {g h}}} 1 1 0 \fB\(->\fI g\fR
-\fBlindex\fR {{{a b} {c d}} {{e f} {g h}}} {1 1 0} \fB\(->\fI g\fR
+\fBlindex\fR {a b c} \fI=> a b c\fR
+\fBlindex\fR {a b c} {} \fI=> a b c\fR
+\fBlindex\fR {a b c} 0 \fI=> a\fR
+\fBlindex\fR {a b c} 2 \fI=> c\fR
+\fBlindex\fR {a b c} end \fI=> c\fR
+\fBlindex\fR {a b c} end-1 \fI=> b\fR
+\fBlindex\fR {{a b c} {d e f} {g h i}} 2 1 \fI=> h\fR
+\fBlindex\fR {{a b c} {d e f} {g h i}} {2 1} \fI=> h\fR
+\fBlindex\fR {{{a b} {c d}} {{e f} {g h}}} 1 1 0 \fI=> g\fR
+\fBlindex\fR {{{a b} {c d}} {{e f} {g h}}} {1 1 0} \fI=> g\fR
.CE
.SH "SEE ALSO"
list(n), lappend(n), linsert(n), llength(n), lsearch(n),
@@ -88,5 +85,6 @@ lset(n), lsort(n), lrange(n), lreplace(n),
.VS 8.5
string(n)
.VE
+
.SH KEYWORDS
element, index, list