Chris Angelico <ros...@gmail.com>:

> most of the point of map() is to make use of an existing function:
>
> # Instead of
> lengths = (len(x) for x in items)
> # Use
> lengths = map(len, items)

Both methods are available and I have used each of them, but the former
is probably always preferable.


Marko
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to