mirror of
https://github.com/BlackMATov/evolved.lua.git
synced 2025-12-16 22:19:25 +07:00
13 lines
234 B
Lua
13 lines
234 B
Lua
---@class evolved.compat
|
|
local compat = {}
|
|
|
|
compat.pack = table.pack or function(...)
|
|
return { n = select('#', ...), ... }
|
|
end
|
|
|
|
compat.unpack = table.unpack or function(list, i, j)
|
|
return unpack(list, i, j)
|
|
end
|
|
|
|
return compat
|