Artifact ebc19cb9b9fb6a979c8faba15c7875123170d2ba03f5616b5d00f82a36f9b0b8:
- File doc/markdown/lreverse.md — part of check-in [bb08aafe0a] at 2025-07-15 19:41:45 on branch tip-700 — some non-change cosmetics to make the ctags implementation in Geany 2.1 partly happy again (user: Torsten, size: 836) [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 fBlreversefR command returns a list that has the same elements as its input list, fIlistfR, 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