Description:
Get information about base members at a superior level in a multilevel loop function.
Syntax:
get(level,F;a:b)
Note:
The function, only valid with a loop function, gets information about base members at a superior level in a multilevel loop function.
Parameter:
level |
The number of levels between the current level, which is recorded as 0, and the desired superior level |
F |
Field name, which is sometimes represented by #, denoting the ordinal number of a field; get members directly when it is absent |
a:b |
An offset interval, where a and b are offset values for members’ ordinal numbers; default a is 1-#, and default b is ~.len() - # ; can be omitted |
Return value:
A member value in a sequence or a sequence of values
Example:
|
A |
|
1 |
=[2,3,8] |
|
2 |
=A1.(A1.(abs(~-get(1)))) |
Compute differences of each member in sequence A1 and the other members (including the current member itself), and gets the following result: |
3 |
=A1.(A1.max(abs(~-get(1)))) |
Compute the maximum difference between each member in sequence A1 and the other members (including the current member itself), and gets the following result: |