REVERSE

Reverse a list

Description

Returns a list containing all the values from the given list, but in reverse order.

Function signature

REVERSE(list: Array) => Array

Parameter

Description

List

List to reverse

Examples

charArray = ["a","b","c"]
numbersArray = [1,2,3]
simpleArray = [1]

Formula

Return value

REVERSE(charArray)

["c","b","a"]

REVERSE(numbersArray)

[3,2,1]

REVERSE(simpleArray)

[1]