lreverse - Man Page

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(n), lappend(n), lassign(n), ledit(n), lindex(n), linsert(n), llength(n), lmap(n), lpop(n), lrange(n), lremove(n), lrepeat(n), lreplace(n), lsearch(n), lseq(n), lset(n), lsort(n)

Keywords

element, list, reverse

Info

8.5 Tcl Built-In Commands