lreverse(n)

lreversen

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

Unchanged in 106 releases since Mac OS X 10.6.

  1. 10.6–26.5

From tcl 152 in macOS 26.5. Parsed by carta from the page's man source.