मोड्युल:OutputBuffer

विकिपिडिया, एक स्वतन्त्र विश्वकोशबाट
Jump to navigation Jump to search

Documentation for this module may be created at मोड्युल: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