rvs()

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

Here’s how to use rvs() function.

A.rvs()

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.

Parameters:

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 functions:

A.psort()

A.sort()

A.swap(p,q)