6.12.5.1.7. Function Product

A callable object that applies each function in a list to each argument in a list, returning a tuple of results.
Start python section to interscript/felix/model/funcat.py[7 /8 ] Next Prev Last
    69: #line 109 "felix_func.ipk"
    70: class function_product:
    71:   def __init__(self, *funcs):
    72:     self.funcs = funcs
    73:   def __call__(self, arg):
    74:     #print 'calling product, arg=',arg
    75:     result = []
    76:     for i in range(len(self.funcs)):
    77:       result.append(self.funcs[i](arg[i]))
    78:     return tuple(result)
    79: 
End python section to interscript/felix/model/funcat.py[7]