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 04:27, 14 November 2017
119 bytes added
,
7 years ago
no edit summary
Line 41:
Line 41:
if v == v_ then
if v == v_ then
return i
return i
+
end
+
end
+
return false
+
end
+
+
function Utils.ifindBy(arr, p)
+
for i, v in ipairs(arr) do
+
if p(v) then
+
return v, i
end
end
end
end
がか
cssedit, gkautomate
7,064
edits