flatten
FEEL built-in function · FEEL list functions
flatten(list)
Returns a flat list with all nested lists recursively expanded in place.
Parameters
| Parameter | Type | Description |
|---|---|---|
| list | list | a possibly nested list |
Examples
flatten([[1, 2], [[3]], 4])
[1, 2, 3, 4]
Try it ↑
Part of FEEL list functions: how positions, nulls and single values behave across all of them, aggregating over lists of contexts, and every function side by side.
Related functions
Defined by the OMG DMN 1.6 specification, chapter 10.3.4 (built-in functions).