luasocket/gem/ex2.lua

12 lines
233 B
Lua
Raw Normal View History

2007-10-11 14:16:28 -07:00
function filter.cycle(lowlevel, context, extra)
return function(chunk)
local ret
ret, context = lowlevel(context, chunk, extra)
return ret
end
end
function normalize(marker)
return filter.cycle(eol, 0, marker)
end