Logo

Programming-Idioms

History of Idiom 53 > diff from v47 to v48

Edit summary for version 48 by programming-idioms.org:
[Lua] +DocURL

Version 47

2017-09-17, 12:12:27

Version 48

2017-09-29, 14:54:33

Idiom #53 Join a list of strings

Concatenate elements of string list x joined by the separator ", " to create a single string y.

Illustration

Idiom #53 Join a list of strings

Concatenate elements of string list x joined by the separator ", " to create a single string y.

Illustration
Code
y = table.concat(x, ", ")
Code
y = table.concat(x, ", ")
Doc URL
https://www.lua.org/manual/5.1/manual.html#5.5