lreverse
Reverse the order of a list
- Provided by: tcl8.6-doc (Version: 8.6.14+dfsg-1build1)
- Source: tcl8.6
- Report a bug
Reverse the order of a list
lreverse list
The lreverse command returns a list that has the same elements as its input list, list, except with the elements in the reverse order.
lreverse {a a b c}
→ c b a a
lreverse {a b {c d} e f}
→ f e {c d} b a
element, list, reverse