Anonymous

Module:FunList/Sandbox: Difference between revisions

From Melvor Idle
no edit summary
No edit summary
No edit summary
Line 13: Line 13:
local enum = FL.TableEnumerator.new(tbl)
local enum = FL.TableEnumerator.new(tbl)
local enum2 = FL.TableEnumerator.new({1,2,3,4,5,6})
 
local concatEnum = FL.ConcatEnumerator.new(enum, {1,2,3,4,5,6})
local selectEnum = FL.MapEnumerator.new(concatEnum, function(x) return x .. x end)
local concatEnum = FL.ConcatEnumerator.new(enum, enum2)
local selectEnum = FL.SelectEnumerator.new(concatEnum, function(x) return x .. x end)
for k, v in pairs(selectEnum) do
for k, v in ipairs(selectEnum) do
Debug.log(v)
Debug.log(v)
end
end
2,875

edits