Skip to content

Instantly share code, notes, and snippets.

@YuRaNnNzZZ
Created December 29, 2017 23:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save YuRaNnNzZZ/6c663afa7c01ac63ec9fd17a9e3df1c4 to your computer and use it in GitHub Desktop.
Save YuRaNnNzZZ/6c663afa7c01ac63ec9fd17a9e3df1c4 to your computer and use it in GitHub Desktop.
-- 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