index of
FEEL built-in function · FEEL list functions
index of(list, match)
Returns the positions of all occurrences of match, as an ascending list of 1-based indexes.
Parameters
| Parameter | Type | Description |
|---|---|---|
| list | list | the list to search |
| match | any | the value to find |
Examples
index of([1, 2, 3, 2], 2)
[2, 4]
Try it ↑
Edge cases and null handling
Part of FEEL list functions: how positions, nulls and single values behave across all of them, aggregating over lists of contexts, and every function side by side.
Related functions
Defined by the OMG DMN 1.6 specification, chapter 10.3.4 (built-in functions).