Is it possible to perform arithmetic on multiple values ββin Lua. I am using Lua for Windows 5.1.4.
Currently, I have to put several values ββin a table and then unzip them, and I would like to skip this step.
Is it possible.
Here is what I have now:
function numsToStr(...) local nums = {} for i,v in ipairs({...}) do nums[i] = v + string.byte('A') - 1 end return string.char(unpack(nums)) end
I want it to be possible
function numsToStr(...) return string.char(...+string.byte('A')-1) end
source share