Reversed function

Fully qualified name: Std.Arrays.Reversed

function Reversed<'T>(array : 'T[]) : 'T[]

Summary

Create an array that contains the same elements as an input array but in reversed order.

Type Parameters

'T

The type of the array elements.

Input

array

An array whose elements are to be copied in reversed order.

Output

An array containing the elements array[Length(array) - 1] .. array[0].