sublist

FEEL built-in function · List functions

sublist(list, start position, length?)

Returns the slice of the list starting at start position, running to the end or for length elements.

Parameters

ParameterTypeDescription
listlistthe source list
start positionnumber1-based start; negative counts from the end
lengthnumbermaximum elements to return (optional)

Examples

sublist([4, 5, 6], 1, 2)
[4, 5] Try it →
sublist([4, 5, 6], -1)

Related functions

append · remove

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