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

ParameterTypeDescription
listlistthe list to search
matchanythe value to find

Examples

index of([1, 2, 3, 2], 2)
[2, 4] Try it →

Related functions

list contains

Defined by the OMG DMN 1.6 specification, chapter 10.3.4 (built-in functions).