Static function
Native
table.concat
Given a <code>tbl</code> where all elements are strings or numbers, returns the string <code>tbl[start_pos] .. separator .. tbl[start_pos + 1] ... separator .. tbl[end_pos]</code>.<br/><br/>If <code>start_pos</code> is greater than <code>end_pos</code>, returns the empty string
Syntax
table.concat(tbl, separator = "", start_pos = 1, end_pos = #tbl)
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
tbl
|
table | — | The table to concatenate. |
separator
optional
|
string | "" |
A separator to insert between strings |
start_pos
optional
|
number | 1 |
The index to start at |
end_pos
optional
|
number | #tbl |
The index to end at |
Returns
- string