Artifact a1d840bd6ea06bb0c96a69820ade97606c8f646b024d8e5af7ce0dd7be3bdfe4:
- File doc/markdown/lreverse.md — part of check-in [36f9a689ca] at 2026-01-17 15:52:32 on branch tip-700 — - made sure that nested Dlist items will be indented properly in the markdown output - made sure that new paragraphs inside Dlist items are divided by a newline - do all bachslah substitutions also in Code blocks - unify binary.n (user: Torsten, size: 828) [annotate] [blame] [check-ins using]
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