Skip to content

Instantly share code, notes, and snippets.

@d9k
Created June 5, 2018 05:19
Show Gist options
  • Save d9k/bfbbd769d14f50697619d9f0a0d4d52b to your computer and use it in GitHub Desktop.
Save d9k/bfbbd769d14f50697619d9f0a0d4d52b to your computer and use it in GitHub Desktop.
return function (...)
local result = {}
local args, args_count = {...}, select('#', ...)
for i = 1, args_count do
item = args[i]
if item == nil then
table.insert(result, '')
else
table.insert(result, item)
end
end
return unpack(result)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment