Skip to content
Tcl Source Code Artifact [365ef2546a]
Login

Artifact [365ef2546a]

Artifact 365ef2546aa1c55ef6c235e6f5750a2645d1f9bda846c02a4d68c26a0d476d69:



CommandName: lreverse title: lreverse ManualSection: n Version: 8.5 TclPart: Tcl TclDescription: Tcl Built-In Commands Links:

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