Modul:OutputBuffer

Saking Wikipédia
Cebur nuju navigasi Cebur nuju parerehan

Dokuméntasi antuk modul puniki prasida kakardi ring Modul: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