zip or marry etc: compose()!

Michael Hudson mwh21 at cam.ac.uk
Sat Jul 22 20:58:42 EDT 2000


David Goodger <dgoodger at bigfoot.com> writes:

> I haven't seen anyone suggest "compose", which is the only word I can think
> of that comes close to the intended semantics. Especially since, political
> statements aside, both "marry" and "zip" imply two sources.

Compose to me would strongly imply something along the lines of

def compose(f,g): return lambda x,f=f,g=g:f(g(x))

and-it's-still-going-to-be-called-"zip"-ly y'rs
M.

-- 
  /* I'd just like to take this moment to point out that C has all
     the expressive power of two dixie cups and a string.
   */                       -- Jamie Zawinski from the xkeycaps source



More information about the Python-list mailing list