Line 1:
Line 1:
−
local Core = {}
+
local Module = {}
-- * Function functions.
-- * Function functions.
−
function Core.id(x)
+
function Module.id(x)
return x
return x
end
end
Line 9:
Line 9:
-- * Collection functions.
-- * Collection functions.
−
function Core.find(tbl, v_, k_)
+
function Module.find(tbl, v_, k_)
for _, v in pairs(tbl) do
for _, v in pairs(tbl) do
if k_ and v and v[k_] == v_ or not k_ and v == v_ then
if k_ and v and v[k_] == v_ or not k_ and v == v_ then
Line 18:
Line 18:
end
end
−
return Core
+
return Module