Re: Parsing varargs to a function
"'Sainan' via lua-l" <[email protected]> Mon, 27 Apr 2026 20:42:36 +0000
| Newsgroups | gmane.comp.lang.lua.general |
|---|---|
| Message-ID | <6o1-3i7p0ZFv_mSa9j9zViLXsN6bBhVWT-3pf5IZNbeZGLgbXBRk7h_d3YzytZ0fkhFOnHXAZkDVaF-Imjq5l-spfOwvn3WjF-3ko-h8F28=@calamity.inc> |
May I introduce you to Lua 5.5?
function f(...t)
for i = 1, #t do
print(t[i])
end
end
-- Sainan
--
You received this message because you are subscribed to the Google Groups "lua-l" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion visit https://groups.google.com/d/msgid/lua-l/6o1-3i7p0ZFv_mSa9j9zViLXsN6bBhVWT-3pf5IZNbeZGLgbXBRk7h_d3YzytZ0fkhFOnHXAZkDVaF-Imjq5l-spfOwvn3WjF-3ko-h8F28%3D%40calamity.inc.