Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
yummyfajitas
15y ago
0 comments
Save
Share
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).
0 comments
3 comments · 1 top-level
top
newest
oldest
silentbicycle
15y ago
· 2 in thread
In other words, list comprehensions are the Pythonic version of same.
sunqiang
15y ago
and Generator Expressions[1], a lazy version of list comprehensions [1]:
http://www.python.org/dev/peps/pep-0289/
silentbicycle
15y ago
Yeah, but generators have been done much better. Look at Icon, Lua, or Prolog.
j
/
k
navigate · click thread line to collapse