Merge ffddaf4a2e
into a402222464
This commit is contained in:
commit
94d3b8add2
1 changed files with 3 additions and 1 deletions
|
@ -37,7 +37,8 @@ end
|
||||||
-- chains a bunch of filters together
|
-- chains a bunch of filters together
|
||||||
-- (thanks to Wim Couwenberg)
|
-- (thanks to Wim Couwenberg)
|
||||||
function filter.chain(...)
|
function filter.chain(...)
|
||||||
local n = table.getn(arg)
|
local arg = {...}
|
||||||
|
local n = #arg
|
||||||
local top, index = 1, 1
|
local top, index = 1, 1
|
||||||
local retry = ""
|
local retry = ""
|
||||||
return function(chunk)
|
return function(chunk)
|
||||||
|
@ -185,6 +186,7 @@ end
|
||||||
-- other, as if they were concatenated
|
-- other, as if they were concatenated
|
||||||
-- (thanks to Wim Couwenberg)
|
-- (thanks to Wim Couwenberg)
|
||||||
function source.cat(...)
|
function source.cat(...)
|
||||||
|
local arg = {...}
|
||||||
local src = table.remove(arg, 1)
|
local src = table.remove(arg, 1)
|
||||||
return function()
|
return function()
|
||||||
while src do
|
while src do
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue