Created
June 5, 2018 05:19
-
-
Save d9k/bfbbd769d14f50697619d9f0a0d4d52b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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