ArithFunct/dean1t
ArithFunct/S02190365
n1def help_call(f, x):n1def foo(s, f):
2    if callable(f):2    if callable(f):
n3        return f(x)n3        return f(s)
4    else:4    else:
5        return f5        return f
66
77
8def ADD(f, g):8def ADD(f, g):
n9    return lambda x: help_call(f, x) + help_call(g, x)n9    return lambda s: foo(s, f) + foo(s, g)
1010
1111
12def SUB(f, g):12def SUB(f, g):
n13    return lambda x: help_call(f, x) - help_call(g, x)n13    return lambda s: foo(s, f) - foo(s, g)
1414
1515
16def MUL(f, g):16def MUL(f, g):
n17    return lambda x: help_call(f, x) * help_call(g, x)n17    return lambda s: foo(s, f) * foo(s, g)
1818
1919
20def DIV(f, g):20def DIV(f, g):
t21    return lambda x: help_call(f, x) / help_call(g, x)t21    return lambda s: foo(s, f) / foo(s, g)
2222
Legends
Colors
 Added 
Changed
Deleted
Links
(f)irst change
(n)ext change
(t)op