Lua Sum of Array

local function sum(sequence)
    local temp = 0
    for i = 1, #sequence do
        temp = temp + sequence[i]
    end
    return temp
end
cyn