Open main menu
Home
Random
Nearby
Log in
Settings
About Kancolle Wiki
Disclaimers
Kancolle Wiki
Search
Changes
← Older edit
Newer edit →
Module:Calc
(view source)
Revision as of 04:46, 22 June 2020
408 bytes added
,
4 years ago
no edit summary
Line 3:
Line 3:
local Formatting = require("Module:Formatting")
local Formatting = require("Module:Formatting")
local Equipment = require("Module:Equipment")
local Equipment = require("Module:Equipment")
+
local Iterator = require("Module:Iterator")
local ShipIterator = require("Module:ShipIterator")
local ShipIterator = require("Module:ShipIterator")
local ShipCapabilities = require("Module:ShipCapabilities")
local ShipCapabilities = require("Module:ShipCapabilities")
Line 393:
Line 394:
sequence = enumerating_function()
sequence = enumerating_function()
sequence_position = 1
sequence_position = 1
+
else
+
local buildIterator = Iterator[enumerator]
+
if buildIterator then
+
sequence = {}
+
sequence_position = 1
+
local iterator = buildIterator(args)
+
while iterator.next() do
+
table.insert(sequence, iterator.current())
+
end
+
end
end
end
elseif arg == "!@" then
elseif arg == "!@" then
がか
cssedit, gkautomate
7,064
edits