• esProc
Tutorial
Function Reference
User Reference
External Library Guide
Data File Tool Manual
DQL Tutorial
Cluster Server Manager Manual
SPL WIN Manual
• YModel
User Reference
JSON-style Parameter Guide
• ReportLite
User Reference
• Official Website

A()

Here’s how to use A() function.

A(i)

Description:

Get a member from a sequence.

Syntax:

A (i)

Note:

Get the ith member from the sequence A.

Parameter:

 A Sequence i A member’s ordinal number expression, which starts from 1

Return value:

Values of members in a sequence

Example:

 A 1 =[1,2,4] 2 =A1(3) 4 3 =["a","b"](1) "a"

Related functions:

A(p)

Description:

Get members of a sequence according to the ordinal numbers of members of an integer sequence to create a new sequence.

Syntax:

A(p)

Note:

Here are sequence A whose lengh is n and the integer sequence p whose length is m. Get members in p and use their values as ordinal numbers to get members in A in order to generate a new sequence.

Parameter:

 p An integer sequence; the range of its member values is ≥0 and ≤n. If P is an empty sequence, then return an empty sequence. A A sequence whose length is n

Return value:

A sequence

Example:

 A 1 [a,b,c,d,e,f,g] 2 [1,3,5] 3 =A1(A2) [a,c,e] 4 [1,3,5,10] 5 =A1(A4) Report errors, as the index is out-of-bound. 6 =A1([]) [] 7 =A1([1,2,3,3]) [a,b,c,c]

Related function: