Line | |
---|
1 | '\" -*- nroff -*- |
---|
2 | '\" Copyright (c) 2006 by Donal K. Fellows. All rights reserved. |
---|
3 | '\" |
---|
4 | '\" See the file "license.terms" for information on usage and redistribution |
---|
5 | '\" of this file, and for a DISCLAIMER OF ALL WARRANTIES. |
---|
6 | '\" |
---|
7 | '\" RCS: @(#) $Id: lreverse.n,v 1.6 2007/12/13 15:22:32 dgp Exp $ |
---|
8 | '\" |
---|
9 | .so man.macros |
---|
10 | .TH lreverse n 8.5 Tcl "Tcl Built-In Commands" |
---|
11 | .BS |
---|
12 | '\" Note: do not modify the .SH NAME line immediately below! |
---|
13 | .SH NAME |
---|
14 | lreverse \- Reverse the order of a list |
---|
15 | .SH SYNOPSIS |
---|
16 | \fBlreverse \fIlist\fR |
---|
17 | .BE |
---|
18 | .SH DESCRIPTION |
---|
19 | .PP |
---|
20 | The \fBlreverse\fR command returns a list that has the same elements as its |
---|
21 | input list, \fIlist\fR, except with the elements in the reverse order. |
---|
22 | .SH EXAMPLES |
---|
23 | .CS |
---|
24 | \fBlreverse\fR {a a b c} |
---|
25 | \fI\(-> c b a a\fR |
---|
26 | \fBlreverse\fR {a b {c d} e f} |
---|
27 | \fI\(-> f e {c d} b a\fR |
---|
28 | .CE |
---|
29 | .SH "SEE ALSO" |
---|
30 | list(n), lsearch(n), lsort(n) |
---|
31 | |
---|
32 | .SH KEYWORDS |
---|
33 | element, list, reverse |
---|
Note: See
TracBrowser
for help on using the repository browser.