lreverse(3tcl)

lreverse3tcl

Reverse the order of a list

Usage

lreverse list


    


    


    

Overview

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

Keywords

element, list, reverse

Releases

9 releases since Debian 5.0 (Lenny); the text changed 5 times.

  1. 5.0
  2. 6.0
  3. 7
  4. 8–9
  5. 10
  6. 11–13

From tcl8.6-doc 8.6.16+dfsg-1 in Debian 13 (Trixie). Also shipped by tcl9.0-doc. Parsed by carta from the page's man source.