table.concat
From GMod Wiki
| Function | |
| Syntax |
table.concat( Table table, [ String separator, Number start location, Number end location] ) Where is this used? |
| Description: | |
| Concatenates the contents of a table with a separator. | |
| Returns: | String Concatenated string |
| Part of Library: | Table |
| Realm: |
|
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Table.concat]Table.concat [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Example
Additional Notes
- It's more efficient to concat your strings using table.concat than to use the concatenation '..' operator.
- You cannot concatenate subtables.
- Must be an integer table (skips non-integer keys)
- You can use String.Explode to reverse what Table.Concat does.