Unnamed repository; edit this file 'description' to name the repository.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
local M = {}

local function add(a, b)
  return a + b
end

function M.process(items)
  local total = 0
  for i, v in ipairs(items) do
    if v > 0 then
      total = total + v
    else
      total = total - v
    end
  end
  local config = {
    name = "test",
    values = {
      1,
      2,
    },
  }
  return total, config
end

return M