function add(x) return function (y) return x + y end end local d = add(5) global c = print(d(7))