Implement source group.

Fixes #391
This commit is contained in:
hrsh7th
2021-10-22 18:23:49 +09:00
parent b546f50f09
commit e4a2cec153
5 changed files with 90 additions and 57 deletions

View File

@@ -0,0 +1,10 @@
return function(...)
local sources = {}
for i, group in ipairs({ unpack(...) }) do
for _, source in ipairs(group) do
source.group = i
table.insert(sources, source);
end
end
return sources
end