• Welcome to the Kancolle Wiki!
  • If you have any questions regarding site content, account registration, etc., please visit the KanColle Wiki Discord

Changes

Jump to navigation Jump to search
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

Navigation menu