www.fgks.org   »   [go: up one dir, main page]

Jump to content

ഘടകം:OutputBuffer

വിക്കിപീഡിയ, ഒരു സ്വതന്ത്ര വിജ്ഞാനകോശം.

ഈ ഘടകത്തിന്റെ വിവരണം ഘടകം:OutputBuffer/വിവരണം എന്ന താളിൽ നിർമ്മിക്കാവുന്നതാണ്

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://ml.wikipedia.org/w/index.php?title=ഘടകം:OutputBuffer&oldid=2557736" എന്ന താളിൽനിന്ന് ശേഖരിച്ചത്