News for hackers. Stuff that matters.
Re:Functools – The Power of Higher-Order Functions in Python by EE84M3i on Friday July 09, 2021 @09:11AM (#27783310)
Personally, I mostly just avoid using map/filter and use a list/generator/set/dict comprehension as required. I don't find map(foo, bar) much easier to read than [foo(thingamajig) for thingamajig in bar]
Re:Functools – The Power of Higher-Order Functions in Python by robertlagrant on Friday July 09, 2021 @10:35AM (#27784076)
Yes, this is I think why Guido wanted to get rid of map() syntax - he prefers comprehension syntax.