Skip to content
Tcl Source Code Artifact [deba583ae3]
Login

Artifact [deba583ae3]

Artifact deba583ae3dd401036d1ffc3d8adcb4fa9f0c727c16a2da7c71998ffd9fed52b:



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