[Python-de] Funktionale Denksportaufgabe

Dinu Gherman gherman at darwin.in-berlin.de
Thu Sep 26 18:07:17 EDT 2002


Martin v. Loewis:

>     def filter1(func, seq):
>         return [func==None or [x for x in seq if func(x)], 
> seq][func==None]

Extrem kompakt - Hut ab!
Stueckweise ausgefuehrt komme ich sogar dahinter, was es macht! ;-)

Dinu

--
Dinu C. Gherman
......................................................................
"I'll let you be in my dream if I can be in yours." (Bob Dylan)





More information about the Python-de mailing list