diff options
| author | donal.k.fellows@manchester.ac.uk <dkf> | 2008-10-17 10:22:24 (GMT) |
|---|---|---|
| committer | donal.k.fellows@manchester.ac.uk <dkf> | 2008-10-17 10:22:24 (GMT) |
| commit | 80edbf61be6a3b316aa5cb4880e48c2292f9e40c (patch) | |
| tree | 5a94240e321022019f593f6bd712833ab12138c6 /doc/lrange.n | |
| parent | f41268c0ed86eeafeccc4b622a2edc32837fea10 (diff) | |
| download | tcl-80edbf61be6a3b316aa5cb4880e48c2292f9e40c.zip tcl-80edbf61be6a3b316aa5cb4880e48c2292f9e40c.tar.gz tcl-80edbf61be6a3b316aa5cb4880e48c2292f9e40c.tar.bz2 | |
Improve clarity of formatting.
Diffstat (limited to 'doc/lrange.n')
| -rw-r--r-- | doc/lrange.n | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/doc/lrange.n b/doc/lrange.n index 830d7fa..bf67022 100644 --- a/doc/lrange.n +++ b/doc/lrange.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: lrange.n,v 1.18 2008/06/29 22:28:24 dkf Exp $ +'\" RCS: @(#) $Id: lrange.n,v 1.19 2008/10/17 10:22:25 dkf Exp $ '\" .so man.macros .TH lrange n 7.4 Tcl "Tcl Built-In Commands" @@ -39,19 +39,23 @@ does not always produce the same result as braces); it does, however, produce exactly the same results as .QW "\fBlist [lindex \fIlist first\fB]\fR" .SH EXAMPLES +.PP Selecting the first two elements: +.PP .CS % \fBlrange\fR {a b c d e} 0 1 a b .CE .PP Selecting the last three elements: +.PP .CS % \fBlrange\fR {a b c d e} end-2 end c d e .CE .PP Selecting everything except the first and last element: +.PP .CS % \fBlrange\fR {a b c d e} 1 end-1 b c d @@ -59,6 +63,7 @@ b c d .PP Selecting a single element with \fBlrange\fR is not the same as doing so with \fBlindex\fR: +.PP .CS % set var {some {elements to} select} some {elements to} select |
