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
"https://si.wikipedia.org/w/index.php?title=Module:OutputBuffer&oldid=406815" වෙතින් සම්ප්‍රවේශනය කෙරිණි