dwww Home | Manual pages | Find package

lreverse(3tcl)               Tcl Built-In Commands              lreverse(3tcl)

______________________________________________________________________________

NAME
       lreverse - Reverse the order of a list

SYNOPSIS
       lreverse list
______________________________________________________________________________

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

SEE ALSO
       list(3tcl), lsearch(3tcl), lsort(3tcl)

KEYWORDS
       element, list, reverse

Tcl                                   8.5                       lreverse(3tcl)

Generated by dwww version 1.14 on Thu Jan 23 00:28:10 CET 2025.