Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function sum(array)
- local total = 0
- for i = 1, #array, 1 do
- total = total + array[i]
- end
- return total
- end
- function equal(a, b)
- if #a ~= #b then
- return false
- end
- for i = 1, #a, 1 do
- if a[i] ~= b[i] then
- return false
- end
- end
- return true
- end
Advertisement
Add Comment
Please, Sign In to add comment