def make_adder(funcs):
    funcs = funcs[:]

def sigma(x):
    return sum(f(x) for f in funcs)
return sigma
phi = [lambda x: x ** 2, lambda x: x]
sigma = make_adder(phi)
y = sigma(x)
Python - function that is sum of arbitrary many other functions