Module:OutputBuffer

From Zoophilia Wiki
Revision as of 23:46, 25 June 2014 by meta>Jackmcbarn (clear buffer after using)
Jump to navigationJump to search

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(buffer, sep)
	end
end