operator on functions
Joshua Marshall
jmarshal at mathworks.com
Fri Apr 6 12:13:37 EDT 2001
Szalay Zoltan <szz at philoslabs.com> wrote:
> Hi everybody out there!
> It would be a nice feature of Python syntax providing an operator to
> compose a function from another two:
> h=f*g . I mean (f*g)(x)=f(g(x).
Though maybe a little thought needs to go into multiple arguments (to f):
(f*g)(x) => f(g(x))
-vs-
apply(f*g, x) => apply(f, apply(g, x))
or some hybrid.
More information about the Python-list
mailing list