@flat
Flatten one level of nesting in an array.
Returns: array
Syntax
Section titled “Syntax”@flat(arr)Arguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
arr |
array |
Source array |
Examples
Section titled “Examples”# Flatten nested arraysset $nested [[1 2] [3 4] [5]]set $result @flat($nested)