Artifact deba583ae3dd401036d1ffc3d8adcb4fa9f0c727c16a2da7c71998ffd9fed52b:
- File doc/markdown/lreverse.md — part of check-in [4da8e8e01d] at 2025-06-17 11:21:43 on branch tip-700 — - added 15 more initial markdown pages - unified syntax in lseq.n, copy.n, callback.n, self.n,clock.n - removed the non-existant "operation" argument from the description, tried to make a more systematic syntax and description without using nested ?? pairs (user: Torsten, size: 830) [annotate] [blame] [check-ins using] [more...]
CommandName: lreverse ManualSection: n Version: 8.5 TclPart: Tcl TclDescription: Tcl Built-In Commands Links:
- list(n)
- lappend(n)
- lassign(n)
- ledit(n)
- lindex(n)
- linsert(n)
- llength(n)
- lmap(n)
- lpop(n)
- lrange(n)
- lremove(n)
- lrepeat(n)
- lreplace(n)
- lsearch(n)
- lseq(n)
- lset(n)
- lsort(n) Keywords:
- element
- list
- reverse Copyright:
- Copyright (c) 2006 Donal K. Fellows. All rights reserved. ---
Name
lreverse - Reverse the order of a list
Synopsis
::: {.synopsis} ::: [lreverse]{.cmd} [list]{.arg} :::
Description
The lreverse command returns a list that has the same elements as its input list, list, except with the elements in the reverse order.
Examples
lreverse {a a b c}
\(-> c b a a
lreverse {a b {c d} e f}
\(-> f e {c d} b a