Created
December 29, 2017 23:33
-
-
Save YuRaNnNzZZ/6c663afa7c01ac63ec9fd17a9e3df1c4 to your computer and use it in GitHub Desktop.
This file contains 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
-- stolen idea from TFA | |
-- code is mine tho | |
local function genOrderedTbl(str, min, max) | |
if not min then min = 1 end | |
if not max then | |
max = min | |
min = 1 | |
end | |
local tbl = {} | |
for i=min, max do | |
table.insert(tbl, str:format(i)) | |
end | |
return tbl | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment