Skip to content
Tcl Source Code Artifact [ebc19cb9b9]
Login

Artifact [ebc19cb9b9]

Artifact ebc19cb9b9fb6a979c8faba15c7875123170d2ba03f5616b5d00f82a36f9b0b8:



CommandName: 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 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