Jump to content

Add Strings Function 1.0.0

   (1 review)

2 Screenshots

About This File

What this function does is that it concenates strings from the arguments into one. This can be useful for those who struggle or find concenating strings hard. 


User Feedback

You may only provide a review once you have downloaded the file.


· Edited by MAARS

   1 of 1 member found this review helpful 1 / 1 member

Good ideas I tried to optimize it 

local function addstring (separator, ...)
  return table.concat({...}, separator or "") 

local r = addstring (nil, 'hello', 'world')
local y = addstring ("; ", 'hello', 'world') 

print (r)
print (y)


Link to review
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.