Jump to content

Module:OutputBuffer

From Fifth Empire Wiki
Revision as of 23:46, 25 June 2014 by wikipedia>Jackmcbarn (use the right table)

Documentation for this module may be created at Module:OutputBuffer/doc

return function()
	local buffer = {}
	return function(text)
		buffer[#buffer + 1] = text
	end,
	function(sep)
		local b = buffer
		buffer = nil
		return table.concat(b, sep)
	end
end