insert before
FEEL built-in function · List functions
insert before(list, position, newItem)
Returns a new list with newItem inserted before the given position.
Parameters
| Parameter | Type | Description |
|---|---|---|
| list | list | the source list |
| position | number | 1-based position of the element to insert before |
| newItem | any | the value to insert |
Examples
insert before([1, 3], 1, 2)
[2, 1, 3]
Try it →
Related functions
Defined by the OMG DMN 1.6 specification, chapter 10.3.4 (built-in functions).