Functions

lreverse

Supported By

Syntax

[the] lreverse of factor

lreverse ( expression )

Factor and expression yield lists.

Example

put lreverse(1,2,3,4) -- yields 4,3,2,1

Description

The lreverse function returns the reversal of the specified list. The last element of the given list becomes the first element of the resulting list, and vice versa.