inlst(L1 L2...LN)

Find the intersection of two or more list-variables.

Syntax

inlst(L1 L2 LN)

Input

Argument Type Description
L list-value A space-separated or comma-separated list of list-values

Return Value

Returns a single list-value that is the intersection of all list-values passed to the L parameter.

Example

This example demonstrates how to use inlst(L1 L2...LN) to create a single list out of two lists. The list returned contains only the values that appeared in both the original lists.

<block name="list_funs" list_a="{lst('1' '2' '3' '4' 'a' 'b')}" list_b="{lst('1' 'a' 'b' 'c' 'd' '2')}">
  <base table="default.lonely"/>
  <willbe name="intersection" label="Intersection" value="'{inlst(@list_a @list_b)}'"/>
</block>

The list-value output from the inlst(L1 L2...LN) function as used above: