lst_position(L;P)
Find the index positions of values in list-value
L for values that appear in list-value P.
Syntax
lst_position(L;P)
Input
| Argument | Type | Description |
|---|---|---|
L |
list-value | A list-value for which index positions will be identified according to
list-value P |
P |
list-value | A list-value whose values will be used to find index positions in list-value
L |
Return Value
Returns a single list-value that contains integers. These integers represent the index
position in list-value L for values in list-value P. If a
value appears in list L and not in list P, the index
position returned is 0.
Example
This example demonstrates how to use lst_position(L;P) to find the index
positions in list-value L based on values appearing in list-value
P.
<block name="list_funs" list_a="{lst(1 2 3 4 'a')}" list_b="{lst(1 'a' 'b' 'c' 'd' 2)}"> <base table="default.lonely"/> <willbe name="positions" label="Positions" value="'{lst_position(@list_a;@list_b)}'"/> </block>
The list-value output from the lst_position(L;P) function as used
above:

