First commit

This commit is contained in:
2026-02-19 18:51:17 +02:00
commit 2d9b2318a9
16 changed files with 358 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
local function reverse(a, s, e)
for i = s, e / 2 do
local counter_i = e - (i - 1)
local tmp = a[i]
a[i] = a[counter_i]
a[counter_i] = tmp
end
end
local a = {5, 3, 8, 1}
reverse(a, 1, #a)
print(table.unpack(a))