aboutsummaryrefslogtreecommitdiff
path: root/gem/ex7.lua
blob: c76698849b2cc6e67fb469a33e6351ef0577b43f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
function sink.table(t)
  t = t or {}
  local f = function(chunk, err)
    if chunk then table.insert(t, chunk) end
    return 1
  end
  return f, t
end

local function null()
  return 1
end

function sink.null()
  return null
end