This commit is contained in:
n8tlarsen 2025-01-24 16:42:42 -06:00
parent a84ab829ea
commit b924b2cb9e
No known key found for this signature in database
GPG Key ID: 57C5DEE3C7454814

View File

@ -15,6 +15,9 @@ end
local function determine_length(arr, previous_length)
local idx = previous_length
if idx == 1 and arr[idx] == nil then
return 0
end
for i = previous_length, 1, -1 do
if arr[i] ~= nil then
idx = i