Jump to content

MAARS

Contributor
  • Posts

    659
  • Joined

  • Last visited

  • Days Won

    25

File Reviews posted by MAARS

    Add Strings Function

       623    0

    Good ideas I tried to optimize it 

    local function addstring (separator, ...)
      return table.concat({...}, separator or "") 
    end 
    
    local r = addstring (nil, 'hello', 'world')
    local y = addstring ("; ", 'hello', 'world') 
    
    print (r)
    print (y)

     

×
×
  • 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.