index of
FEEL built-in function · 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 →
Related functions
Defined by the OMG DMN 1.6 specification, chapter 10.3.4 (built-in functions).