map/filter/reduce/lambda opinions and background unscientificmini-survey

Steven D'Aprano steve at REMOVEMEcyber.com.au
Sun Jul 3 23:52:13 EDT 2005


Carl Banks wrote:

> The shamelessness with which you inflated the verbosity of the latter
> is hilarious.

[snip]

> [ x**2 + y**2 for (x,y) in izip(xlist,ylist) ]
> 
> Now there's no longer much advantage in conciseness for the map version
> (seeing that you'd have to define a function to pass to map), and this
> is more readable.

and then, five minutes later in another post, wrote:

 > If you're doing heavy functional programming,
 > listcomps are tremendously unwieldy compared to
 > map et al.

Having a dollar each way I see :-)


-- 
Steven.




More information about the Python-list mailing list