Reverse

Syntax

	$list.reverse()

Description

Returns the given list in reverse order.

Parameters

Name Type Description Mandatory Default
list Set List whose order is to be reversed. yes

Return value

Type: Set

The given list in reverse order.

Examples

	list(1, 2, 3).reverse()

Output: A list with the elements [3, 2, 1].