Reverse function

Invertieren der Reihenfolge in Listen


Description

The Reverse function inverts the order of the elements in the specified list.

With two optional parameters the range to be inverted can be restricted.


Syntax

Reverse (list)

Reverse (list, index, length)

Examples

a=[1,2,3,4,5,6,7,8]

Reverse(a)= 8 7 6 5 4 3 2 1

Reverse(a,3,3)= 1 2 5 4 3 6 7 8