A.rvs ()

Read(867) Label: sequence, reverse, new sequence,

Description:

Generate a new sequence by reversing the members in a sequence.

Syntax:

A.rvs()

Note:

The function generates a new sequence by reversing the members in sequence A to make the last member the first member, and second-to-last one the second one, and so forth.

Parameter:

A

A sequence

Return value:

The reversed sequence A

Example:

 

A

 

1

=[1,2,3,4].rvs()

[4,3,2,1].

2

=demo.query("select * from DEPARTMENT")

3

=A2.rvs()

Related function:

A.psort()

A.sort()

A.swap(p,q)