Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local constants = {}
- function charRange(s, e)
- assert(type(s) == 'string' and type(e)=='string')
- local res = ''
- for i = s:byte(), e:byte()do
- res ..= string.char(i)
- end
- return res
- end
- constants.newBase = charRange(' ', '{') .. '}~'
- return constants
Add Comment
Please, Sign In to add comment