3 ms·
reduce() is a handy function. I agree that map and filter could be replaced easily with list comprehensions. I personally find list comprehensions to be more e
by ericmoritz 15y ago
reduce() is a handy function. I agree that map and filter could be replaced easily with list comprehensions. I personally find list comprehensions to be more explicit and easier to read.