3 ms·
No native map or filter? Unless I don't understand what you mean by native, don't https://docs.python.org/3/library/functions.html#map https://docs.python.org/3
by ubercore 9y ago
No native map or filter? Unless I don't understand what you mean by native, don't https://docs.python.org/3/library/functions.html#map https://docs.python.org/3/library/functions.html#map and https://docs.python.org/3/library/functions.html#filter https://docs.python.org/3/library/functions.html#filter and https://docs.python.org/3/library/functools.html#functools.reduce https://docs.python.org/3/library/functools.html#functools.r... count?
- ralmidani 9y agoThank you for correcting me. I edited my post above to reflect that. But having to provide a lambda for the simple case makes them less useful. Also, nested function calls are less readable than chaining method calls on the same object.