3 ms·
> Should I be using a list comprehension or a map/filter/reduce? yes, use list comprehensions -- they are more readable. >When should I split that list compre
by fernandotakai 7y ago
> Should I be using a list comprehension or a map/filter/reduce?
yes, use list comprehensions -- they are more readable.
>When should I split that list comprehension?
just use common sense. if you can read it and understand without thinking too much, that's good.
it's readability beats short code 100% of the time.