Quote:
|
Originally Posted by Sane
I find it quite silly how Python3 decided to add things like "any()" and "all()" when they are even easier to make yourself then the functions they are taking away ("filter()", "map()").
|
Depends what you are working on.
I think filter() and map() were introduced to Python before list comprehension came around. List comprehension is probably more efficient, particularly if you use the corresponding generator.