works:programmer:lua:pack-unpack
Использование Pack и Unpack в Lua 5.1
local lua = {} function lua.mult(...) -- one = select(1, ...) -- print(one) all = {...} for k,v in pairs(all) do all[k] = v * v end return unpack(all) end print(_VERSION) print(lua.mult(2, 4, 8))
works/programmer/lua/pack-unpack.txt · Последнее изменение: 2020/10/09 18:27 — 127.0.0.1