Open main menu
Home
Random
Nearby
Log in
Settings
About Kancolle Wiki
Disclaimers
Kancolle Wiki
Search
Changes
← Older edit
Newer edit →
Module:Core
(view source)
Revision as of 21:38, 7 February 2019
8 bytes added
,
5 years ago
m
no edit summary
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
がか
cssedit, gkautomate
7,064
edits