frr/tests/lib/script1.lua

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
236 B
Lua
Raw Normal View History

function foo(a, b)
a = a + b
return {
a = a,
b = b,
}
end
function fact(n)
function helper(m)
if m == 0 then
return 1
else
return m * helper(m - 1)
end
end
return {
n = helper(n)
}
end