6.12.5.1.8. Function Sum

A callable object that calls one function in a list to the argument, depending on the discriminant integer.
Start python section to interscript/felix/model/funcat.py[8 /8 ] Prev
    80: #line 123 "felix_func.ipk"
    81: class function_sum:
    82:   def __init__(self, *args):
    83:     self.funcs = args
    84:   def __call__(self, arg):
    85:     #print 'function sum, arg=',arg
    86:     return self.funcs[arg[0]](arg[1])
    87: