[Python-ideas] itertools has starmap but no starreduce?

Oleg Broytman phd at phd.pp.ru
Fri Feb 12 20:19:40 CET 2010


On Fri, Feb 12, 2010 at 01:59:45PM -0500, Andrey Fedorov wrote:
> Aside: there is no built-in for "lambda x, f: f(x)" somewhere, is there?

   apply(f, x) but why do you need it at all? Just call f(x).

Oleg.
-- 
     Oleg Broytman            http://phd.pp.ru/            phd at phd.pp.ru
           Programmers don't die, they just GOSUB without RETURN.



More information about the Python-ideas mailing list