filter2

Oleg Broytmann phd at phd.pp.ru
Thu Jun 13 12:36:36 EDT 2002


On Thu, Jun 13, 2002 at 11:06:02AM -0500, Jeff Epler wrote:
>     funcs = [l2.append, l1.append]
>     map(lambda x: funcs[bool(test(x))](x), list)

   Wow! That's nice!

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





More information about the Python-list mailing list