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

8
exercises/ch06/ex6_1.lua Normal file
View File

@@ -0,0 +1,8 @@
local function print_array(a)
for _, v in pairs(a) do
print(v)
end
end
print_array({ 1, 2, 3 })
print_array({ "a", 2, "hello", 99 })