Jump to content

Module:OutputBuffer

From Fifth Empire Wiki
Revision as of 23:17, 23 January 2026 by Lusi (talk | contribs) (1 revision imported)

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

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