How to Array Sum in Lua - Code Snippet

How to perform 'Array Sum' in Lua.

example.lua
-- Task: Array Sum
-- Language: Lua

function array_sum() 
    -- Implementation for Array Sum
    local result = ...; -- Initialize variable
    -- TODO: Implement core logic here
    -- Step 1: Prepare data
    -- Step 2: Process Array Sum
    print("Done");
end
AdSense Slot