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
27
28
29
30
31
module M

function process(items)
    total = 0
    for v in items
        if v > 0
            total += v
        elseif v < 0
            total -= v
        else
            total += 1
        end
    end
    config = Dict(
        "a" => 1,
        "b" => 2,
    )
    return total
end

function safe(x)
    try
        risky(x)
    catch e
        handle(e)
    finally
        cleanup()
    end
end

end