This repository has been archived on 2022-12-23. You can view files and clone it, but cannot push or open issues or pull requests.
fuck-premake-old2/website/docs/table.implode.md

28 lines
543 B
Markdown
Raw Normal View History

2021-03-11 20:29:22 +00:00
Merges an array of items into a single, formatted string.
```lua
table.implode(arr, "before", "after", "between")
```
### Parameters ###
`arr` is the array to be converted into a string. `before` is a string to be inserted before each item. `after` is a string to be inserted after each item. `between` is a string to be inserted between items.
### Return Value ###
The formatted string.
### Availability ###
Premake 4.0 or later.
### Examples ###
```lua
-- returns "[A],[B],[C]"
table.implode({ "A", "B", "C"}, "[", "]", ",")
```