reverse()

Synopsis

Makes a new list with the same elements as the input list, but in the reverse order.

To reverse a Vector, use the negation operator, as in -myVector.

Syntax

reverse ( list As List ) As List 
Argument Type Description
list List The input list, for which a reversed copy will be returned.

Example 1

Intent >reverse({:a, :b, :c, :d}) 
--> {:d, :c, :b, :a}