Jump to content

Module:OutputBuffer

From Simple English Wikipedia, the free encyclopedia
Revision as of 23:45, 25 June 2014 by Jackmcbarn (talk | changes) (Created page with 'return function() local buffer = {} return function(text) buffer[#buffer + 1] = text end, function(sep) return table.concat(buffer, sep) end end')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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)
		return table.concat(buffer, sep)
	end
end