diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2006-11-09 15:19:01 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2006-11-09 15:19:01 (GMT) |
commit | b07bb89f2a73a18a69b6666c3484f3e2271f53bf (patch) | |
tree | c99380de0e89bc86e1accd8eef22508a2650412a /doc | |
parent | e33a0caada7278a17cac044aaf753e624489623d (diff) | |
download | tcl-b07bb89f2a73a18a69b6666c3484f3e2271f53bf.zip tcl-b07bb89f2a73a18a69b6666c3484f3e2271f53bf.tar.gz tcl-b07bb89f2a73a18a69b6666c3484f3e2271f53bf.tar.bz2 |
Implemented [lreverse] from TIP#272
Diffstat (limited to 'doc')
-rw-r--r-- | doc/lreverse.n | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/doc/lreverse.n b/doc/lreverse.n new file mode 100644 index 0000000..6c10274 --- /dev/null +++ b/doc/lreverse.n @@ -0,0 +1,31 @@ +'\" -*- nroff -*- +'\" Copyright (c) 2006 by Donal K. Fellows. All rights reserved. +'\" +'\" See the file "license.terms" for information on usage and redistribution +'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES. +'\" +'\" RCS: @(#) $Id: lreverse.n,v 1.1 2006/11/09 15:19:03 dkf Exp $ +'\" +.so man.macros +.TH lreverse n 8.5 Tcl "Tcl Built-In Commands" +.BS +'\" Note: do not modify the .SH NAME line immediately below! +.SH NAME +lreverse \- Reverse the order of a list +.SH SYNOPSIS +\fBlreverse \fIlist\fR +.BE +.SH DESCRIPTION +.PP +The \fBlreverse\fP command returns a list that has the same elements as its +input list, \fIlist\fP, except with the elements in the reverse order. +.SH EXAMPLES +.CS +\fBlreverse\fP {a a b c} => c b a a +\fBlreverse\fP {a b {c d} e f} => f e {c d} b a +.CE +.SH "SEE ALSO" +list(n), lsearch(n), lsort(n) + +.SH KEYWORDS +element, list, reverse |