![]() | ![]() | ![]() | ![]() |
Tcl8.5.7/Tk8.5.7 Documentation > TclCmd > lreverseTcl/Tk Applications | Tcl Commands | Tk Commands | Tcl Library | Tk LibraryNAMElreverse - Reverse the order of a listSYNOPSISlreverse listDESCRIPTIONThe lreverse command returns a list that has the same elements as its input list, list, except with the elements in the reverse order.EXAMPLESlreverse {a a b c}
→ c b a a
lreverse {a b {c d} e f}
→ f e {c d} b a
SEE ALSOlist, lsearch, lsortKEYWORDSelement, list, reverseCopyright © 1995-1997 Roger E. Critchlow Jr.
Copyright © 2006 by Donal K. Fellows. All rights reserved.
|