HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by pxndx | Hacker News Reader
Parent
Full thread
pxndx
·
Python list comprehensions _are_ map/reduce.
View on HN
mehrdadn
·
I think you mean map/filter.
pxndx
·
Yes, thanks for correcting me.
yxhuvud
·
Sure, but they compose really bad.
vanderZwan
·
Why? Just assign to a variable, then do another list comprehension on the next line, no?
yxhuvud
·
And that is a pretty sad state of affairs compared to ways that do compose well, like the one in Ruby which you can easily chain.
Reply on news.ycombinator.com