ch06 exercises

This commit is contained in:
2026-02-26 22:58:59 +02:00
parent d91930f1f9
commit 218f566a54
4 changed files with 54 additions and 0 deletions

7
exercises/ch06/ex6_3.lua Normal file
View File

@@ -0,0 +1,7 @@
local function f(...)
local t = table.pack(...)
return table.unpack(t, 1, t.n - 1)
end
print(f(1, 2, 3, 4))
print(f("a", "b", "c", "d"))