@concat
Concatenate arrays together.
Returns: array
Syntax
Section titled “Syntax”@concat(first ...rest)Arguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
first |
array |
First array to concatenate |
[...rest] |
array |
Additional arrays to append |
Examples
Section titled “Examples”# Concatenate two arraysset $a [1 2]set $b [3 4]set $merged @concat($a $b)
# Concatenate three arraysset $triple @concat([1 2] [3 4] [5 6])See Also
Section titled “See Also”- @flat — flatten nested arrays