Description:
Get a member from a sequence.
Syntax:
A(i)
Note:
Get the ith member from the sequence A.
Parameter:
A |
A sequence. |
i |
A member’s sequence 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" |
Get one or more child members from member sequences of a sequence:
|
A |
|
1 |
=file("emp.txt").cursor@w().fetch() |
Return a sequence of sequences: |
2 |
=A1.(~2) |
Get the 2nd member of each member sequence of A1’s sequence: |
3 |
=A1.([~(1),~2]) |
Get the 1st and 2nd members of each member sequence of A1’s sequence: |
4 |
=A1.groupc(~(3);[(~1),(~2)]) |
Perform computations on A1 and return the following result: |
Related functions: