Command: reverse

Syntax

reverse <ident> { ,<ident> ... }

Description

Reverse the element order of one or more array identifiers.

Parameters

Switches

None

Notes

Some system identifiers are read-only and as such cannot be reversed.

If an array specification is appended to <ident>, then only the indicated array elements will be reversed.

Examples

Reverse all elements of an identifier. xar values become 40,30,20,10.

numeric xar[] = <10,20,30,40>
reverse xar

Reverse an array range. ss values become 'A','D','C','B','E'.

string ss[] = <'A','B','C','D','E'>
reverse ss[2:4]

See Also

Commands:

circulate, reorder, sortid