esProc offers sequence functions that handle sequence values.
Ø A(i) |
Get a member from a sequence |
Ø A(i)=x |
Assign values to members of a sequence |
Ø A(p) |
Create a new sequence by getting members from a sequence according to the sequence numbers of members of an integer sequence |
Ø A(p)=X |
Assign members of sequence X to corresponding members of another sequence in order |
Ø A(p)=x |
Assign value x to corresponding members of another sequence |
Delete specified members from a sequence |
|
Ø A.i() |
Convert a specified sequence to a pure sequence |
Insert members into a sequence |
|
Ø A.inv() |
Adjust the order of members of a sequence |
Ø A.len() |
Get the length of a sequence |
Ø A.m() |
Get members of a sequence at specified positions |
Get members of a sequence at specified positions to form a new sequence |
|
Assign values to one or more members of a sequence according to the specified position(s) |
|
Ø A.o() |
Convert a sequence to an ordinary one |
Ø A.p() |
Get sequence numbers of the members at specified positions |
Ø A.pad() |
Add members of a sequence to another one until the latter reaches a certain length |
Ø A.rvs() |
Generate a new sequence by reversing the members in a sequence |
Get a shuffled sequence |
|
Ø A.step() |
Create a sequence by getting members from a sequence according to the specified starting position and step |
Ø A.swap() |
Generate a new sequence by swapping the positions of two intervals in a sequence specified by two integer sequences |
Ø A.to() |
Get members from a sequence starting from a specified position to create a new sequence |
Ø [] |
Define an empty sequence |
Define a sequence constant |
|
Ø ifa() |
Find whether an object is a sequence |
Ø p.inv(k) |
Get sequence numbers of an integer sequence’s members in another integer sequence |
Ø to() |
Generate a sequence composed of a series of consecutive integers |