3 ms·
While Guido is not keen on reduce, I don't think he has any desire to eliminate list comprehensions (which are equivalent to map/filter).
by yummyfajitas 16y ago
While Guido is not keen on reduce, I don't think he has any desire to eliminate list comprehensions (which are equivalent to map/filter).
- silentbicycle 16y agoIn other words, list comprehensions are the Pythonic version of same.
- sunqiang 16y agoand Generator Expressions[1], a lazy version of list comprehensions [1]: http://www.python.org/dev/peps/pep-0289/ http://www.python.org/dev/peps/pep-0289/
- silentbicycle 16y agoYeah, but generators have been done much better. Look at Icon, Lua, or Prolog.