Debian Codegraph @

doc/lreverse.n

raw
1 '\"
2 '\" Copyright (c) 2006 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 .TH lreverse n 8.5 Tcl "Tcl Built-In Commands"
8 .so man.macros
9 .BS
10 '\" Note: do not modify the .SH NAME line immediately below!
11 .SH NAME
12 lreverse \- Reverse the order of a list
13 .SH SYNOPSIS
14 \fBlreverse \fIlist\fR
15 .BE
16 .SH DESCRIPTION
17 .PP
18 The \fBlreverse\fR command returns a list that has the same elements as its
19 input list, \fIlist\fR, except with the elements in the reverse order.
20 .SH EXAMPLES
21 .CS
22 \fBlreverse\fR {a a b c}
23 \fI\(-> c b a a\fR
24 \fBlreverse\fR {a b {c d} e f}
25 \fI\(-> f e {c d} b a\fR
26 .CE
27 .SH "SEE ALSO"
28 list(n), lsearch(n), lsort(n)
29
30 .SH KEYWORDS
31 element, list, reverse
32 '\" Local Variables:
33 '\" mode: nroff
34 '\" End: