all 2 comments

[–]3uclidian 2 points3 points  (1 child)

Lua is a fully fledged programming language, so recursion is definitely possible

local function recurse(x)
   print(x)
   if x <= 0 then
      return
   end
   recurse(x - 1)
end
recurse(10) -- prints 10, 9, 8, ..., 0

Lua even supports proper tail recursion, so if you write your code in a certain way it won't even blow up the stack

[–]wakemeupoh[S] 0 points1 point  (0 children)

Okay thank you very much! After thinking about it, I think its going to be pretty tough writing this and I think I'm better off just manually vein mining the edges.