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 18:39, 26 January 2019
20 bytes removed
,
5 years ago
m
no edit summary
Line 327:
Line 327:
local enumerator = string.sub(arg, 2)
local enumerator = string.sub(arg, 2)
local enumerating_function = enumerating_functions[enumerator]
local enumerating_function = enumerating_functions[enumerator]
−
if
enumerator == 'range' then
+
if enumerating_function and not sequence then
−
sequence = {}
−
for i = tonumber(args.from), tonumber(args.to) do
−
table.insert(sequence, i)
−
end
−
sequence_position = 1
−
elseif
enumerating_function and not sequence then
sequence = enumerating_function()
sequence = enumerating_function()
sequence_position = 1
sequence_position = 1
Line 393:
Line 387:
debugLog("#args", #args)
debugLog("#args", #args)
debugLog("type(args)", type(args))
debugLog("type(args)", type(args))
+
if args.from and args.to then
+
sequence = {}
+
for i = tonumber(args.from), tonumber(args.to) do
+
table.insert(sequence, i)
+
end
+
sequence_position = 1
+
end
local i = 1
local i = 1
local values = {}
local values = {}
がか
cssedit, gkautomate
7,064
edits