home ~ socials ~ projects ~ rss

Create A Lua Table Of Anonymous Functions

July 2021
tests_to_run = {
    function ()
        print("HERE")
    end,
    function ()
        print("THERE")
    end
}

for i=1, #tests_to_run do
    tests_to_run[i]()
end
end of line
Share link:
https://www.alanwsmith.com/en/20/eo/gy/jt/?create-a-lua-table-of-anonymous-functions