-- Head is next insert, tail is next read
local head, tail = 1, 1;
local items = 0; -- Number of stored items
-- Head is next insert, tail is next read
local head, tail = 1, 1;
local items = 0; -- Number of stored items
count = function (self) return items; end;
push = function (self, item)
if items >= size then
count = function (self) return items; end;
push = function (self, item)
if items >= size then