Jump to content

Module:OutputBuffer

विकिपीडिया से
Jackmcbarn (बातचीत | योगदान) (change output order and fix bug) के द्वारा 00:06, 26 जून 2014 के बदलाव
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