FEEL

remove

FEEL built-in function · FEEL list functions

remove(list, position)

Returns a new list with the element at the given position removed.

Parameters

ParameterTypeDescription
listlistthe source list
positionnumber1-based position to remove; negative counts from the end

Examples

remove([1, 2, 3], 2)
[1, 3] Try it ↑

Edge cases and null handling

remove([1, 2, 3], -1)
[1, 2] Try it ↑

Removes the last element.

remove([1, 2, 3], 5)

Related functions

insert before · sublist · list replace

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