-
-
Notifications
You must be signed in to change notification settings - Fork 619
table.implode
starkos edited this page Apr 10, 2021
·
3 revisions
This wiki is no longer being maintained.
Merges an array of items into a single, formatted string.
table.implode(arr, "before", "after", "between")
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.
The formatted string.
Premake 4.0 or later.
-- returns "[A],[B],[C]"
table.implode({ "A", "B", "C"}, "[", "]", ",")